11.
What is the output of function multiply(x, y) { return x * y; } var result = multiply(5, 10); console.log(result);?
12.
Which of these is the correct way to define and immediately invoke a function?
13.
What will function greet() { console.log('Hi'); } var x = greet; x(); output?
14.
How can you invoke a function stored in a variable myFunc?
15.
What is the output of var test = function() { return 5; }; console.log(test());?
16.
Which of the following correctly invokes a function with parameters?
17.
How can you invoke a function named init only once when the script runs?
18.
What is the output of function sayHi() { return 'Hi'; } alert(sayHi());?
19.
How do you define and invoke a function to calculate the square of a number in one step?
20.
What does return without a value return?