11.
How do you call a method named greet that belongs to an object person?
12.
Which statement correctly defines a function named sum that returns the sum of two parameters a and b?
13.
How do you create a function expression in JavaScript?
14.
What is the difference between function declarations and function expressions?
15.
How do you define a default parameter in a function?
16.
What will be the output of the following code: function test() { return "Hello"; } alert(test());?
17.
How can you assign a function to a variable?
18.
Which of the following is true about functions in JavaScript?
19.
What is the scope of a variable declared inside a function?
20.
How do you define an Immediately Invoked Function Expression (IIFE)?