Computer Science, asked by fhxhvj, 10 months ago

what is JavaScript function syntax?​

Answers

Answered by Anonymous
0

Answer:

A JavaScript function is defined with the function keyword, followed by a name, followed by parentheses ().

Function names can contain letters, digits, underscores, and dollar signs (same rules as variables).

The parentheses may include parameter names separated by commas: (parameter1, parameter2, ...)

The code to be executed, by the function, is placed inside curly brackets: {}

Answered by Anonymous
0

Answer:

Hello

Functions allow to structure programs in

segments of code to perform individual

tasks. In C++, a function is a group of

statements that is given a name, and

which can be called from some point of

the program.

Similar questions