1.
What is the correct syntax for defining a function in JavaScript?
2.
How do you call a function named myFunction?
3.
Which keyword is used to declare a function in JavaScript?
4.
How do you write an anonymous function in JavaScript?
5.
How can you return a value from a function?
6.
What is the purpose of the return statement in a function?
7.
How do you define a function that takes parameters?
8.
Which of the following is an example of an arrow function?
9.
How can you define a function as a property of an object?
10.
What is a method in JavaScript?