How do you create a function?
-
function myFunction()
-
function=myFunction()
-
function:myFunction()
-
function myFunction
A
Correct answer
Explanation
Functions in JavaScript are created using the 'function' keyword followed by the function name and parentheses: function myFunction(). The equals sign or colon are not part of function declaration syntax.