Join Now
Home Aptitude Reasoning DI VA GK CA CA Hindi Quiz Placements
To call a function with a specified "this" value and arguments provided as an array
To call a function with a specified "this" value and arguments provided as individual arguments
To create a new object with a specified prototype object and properties
To bind a function to a specific "this" value
Function constructor
Function expression
Function literal
Function prototype
What is the output of the following code snippet?
function myFunction(x) {return function(y) {return x + y;};}var addFive = myFunction(5);var result = addFive(10);console.log(result);
5
10
15
20
To create a new variable
To create a new object instance
To declare a new function
To import a module
To create a new function with a specified "this" value and arguments provided as an array
To refer to the current object
To refer to the previous object
To refer to the next object
To refer to a global variable
A parameter that is required for a function to work properly
A parameter that has a default value if no value is provided
A parameter that is ignored by a function
A parameter that allows a function to accept an indefinite number of arguments as an array
var x = 10;function myFunction() {console.log(x);var x = 5;}myFunction();
undefined
Error
Returning a function from another function
Using the "with" statement
Using the "debugger" statement
Using the "switch" statement
Pass by value
Pass by reference
Pass by pointer
Pass by object