CIW
1D0-635 · Question #25
What basic code is needed to define a function in JavaScript?
The correct answer is C. function myFunction() { }. See the full explanation below for the reasoning.
Question
What basic code is needed to define a function in JavaScript?
Options
- Afunction myFunction { }
- Bdefine myFunction() { }
- Cfunction myFunction() { }
- Ddefine myFunction { return value; }
How the community answered
(31 responses)- A13% (4)
- B6% (2)
- C77% (24)
- D3% (1)
Community Discussion
No community discussion yet for this question.