1.
What is the correct syntax for invoking a function named myFunction?
2.
How do you define a function in JavaScript?
3.
Which keyword is used to return a value from a function?
4.
How do you immediately invoke a function expression (IIFE)?
5.
What will be the output of the following code: function test() { return "Hello"; } console.log(test());?
6.
How can you store the result of a function in a variable?
7.
What is the scope of a variable declared within a function?
8.
How do you define a function with parameters in JavaScript?
9.
Which of the following is a valid way to return multiple values from a function?
10.
How do you handle the returned value of a function that returns an object?