⊗jsPmBsFPA 4 of 502 menu

Let's analyze the program code

Let's analyze the code of the program we wrote before. The first concept you need to learn is functions. Functions allow you to perform certain actions. In our example, there is a function alert() that displays text on the screen as a dialog box.

The function consists of a name (in our case it is alert), followed by parentheses. In these parentheses, you should write function parameters. In our case, the parameter is the text that is displayed on the screen.

In our case, the function has one parameter, but there can be functions that take multiple parameters. In this case, these parameters are written separated by commas.

enru