It’s an object-oriented language and a procedural one at the same time, which means it supports both imperative and declarative styles of programming. It’s a cross-platform, client-side programming language, which means it runs on user browsers.
This makes it easy for you to code and test on your device without having to download a special program to run it. It’s also a lightweight language, which doesn’t put too much strain on CPU or RAM.
There are a lot of different ways to write functions, but they all follow the same structure: function name, parameter list and return value. Functions can have multiple parameters, but they must always be surrounded by parentheses. A function can also return a value or an object, but this must be declared as a return value in the code.