Is it valid to pass an anonymous function as an argument to another function?
AnswerWhich of the following statements is valid for the features of JavaScript?
AnswerWhat is the result of the below JavaScript code when the functions get called in the order as mentioned?
function first() { window.a = 3; } function second() { alert(a); }Answer
Which of the following function of String object produces an HTML hypertext link for requesting another URL?
AnswerWhich of the following function of String object would compare a regular expression with a string?
AnswerWhich is the use of typeof operator in JavaScript?
function() { var a = 10; if(a > 5) { a = 7; } alert(a); }Answer
Select a function of Array object which returns a new array comprised of the current array /or its value(s)?
AnswerSelect a String function that creates a string and display in a big font as if it were in a tag?
AnswerWhich of the following JavaScript code snippet would create an object?
function() { var a = 10; if(a > 5) { a = 7; } alert(a); }Answer
What is the result of the below JavaScript code when the functions get called in the order as mentioned?
var a = 5; function first() { a = 6; } function second() { alert(a); }Answer
Which of the following method of Boolean object returns a string depending upon the value of the object?
AnswerWhat is the output of the following JavaScript snippet?
function() { var a = 10; if(a > 5) { a = 7; } alert(a); }Answer
Which of the following is the output of the below JavaScript code?
var x = [typeof x, typeof y][1]; typeof typeof x;Answer
Which of the following is the output of the below JavaScript code?
function() { if(true) { var a = 5; } alert(a); }Answer
Which of the following will return the type of the arguments passed to a function?
AnswerWhich of the following function of String object returns the capitalized string while respecting the current locale?
AnswerWhat is the function of Array object that adds and/or removes elements from an array?
AnswerWhen executed, the below JavaScript code will pop up three alerts. Identify the corret answer?
var a = 6; function test() { var a = 7; function again() { var a = 8; alert(a); // A } again(); alert(a); // B } test(); alert(a); // CAnswer
Which of the following methods removes the last element from an array and returns that element?
AnswerWhat is the function of Array object that runs through each element of the array?
Answer© 2017 QuizBucket.org