Which of the following is a JavaScript function declaration?
A. function myFunction() {}
B. myFunction() {}
C. var myFunction = function() {}
D. All of the above
Answer:A
Which of the following is a JavaScript function declaration?
A. function myFunction() {} B. myFunction() {} C. var myFunction = function() {} D. All of the above