What basic code is needed to define a function in JavaScript?

What basic code is needed to define a function in JavaScript?

What basic code is needed to define a function in JavaScript?

A.
function myFunction { }

B.
define myFunction() { }

C.
function myFunction() { }

D.
define myFunction { return value; }

Explanation:



Leave a Reply 1

Your email address will not be published. Required fields are marked *


Stan

Stan

Correct – the function declaration, function name followed by parenthesis, and open close brackets are the correct syntax.