December 2017
Beginner
372 pages
10h 32m
English
Declaring a function is straightforward, with the function name, set of parameters, and then, inside curly braces, the implementation. After the set of parameters is declared, we can also annotate the function with the data type of the return value from the function. By default, all properties and functions inside the class are public.
Before we look at the remaining functions in our class, let's look at the JavaScript generated so far for our code. If you are following along then, to generate the JavaScript file, use Ctrl + Shift + B on Windows and Cmd + Shift + B on macOS. This command will build the code and generate a corresponding JavaScript file. If we have the sourcemap flag turned on in our taskconfig.json
Read now
Unlock full access