Question
a.
Returns [“123″”456″”789”]
b.
Returns [“123″,”456″,”789”]
c.
Returns [1,2,3,4,5,6,7,8,9]
d.
Throws an exception
Posted under JavaScript
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. What would be the result of the following statement in JavaScript using regular expression methods ?
Similar Questions
Discover Related MCQs
Q. The Crockford's subset doesnot include which function in JavaScript?
View solution
Q. Why does JavaScript subset disallow == and !=?
View solution
Q. What is being imposed on each subset to ensure that it conforms to the subset?
View solution
Q. Why was "The Good Parts" designed as a language subset in JavaScript?
View solution
Q. Which is the subset that is a secure container designed for the purpose of safely running untrusted JavaScript?
View solution
Q. Why is the this keyword forbidden in JavaScript?
View solution
Q. Which are the two functions that are not allowed in any secure subset?
View solution
Q. Which is the object that defines methods that allow complete control over page content?
View solution
Q. Which was one of the first security subsets proposed?
View solution
Q. Which is the subset that transforms web content into secure modules that can be safely hosted on a web page?
View solution
Q. Consider the following code snippet:
const pi=3.14;
var pi=4;
console.log(pi);
What will be the output for the above code snippet?
View solution
Q. The let keyword can be used
View solution
Q. The main difference between the variables declared with var and with let is
View solution
Q. Consider the following code snippet:
console.log(p)
If p is not defined, what would be the result or type of error?
View solution
Q. Consider the following code snippet:
let x=x+1;
console.log(x);
What will be the result for the above code snippet?
View solution
Q. Consider the following code snippet:
[x,y]=[y,x];
What is the result of the above code snippet?
View solution
Q. Which looping statement allows XML tags to appear in JavaScript programs and adds API for operating on XML data?
View solution
Q. Which exception does the Iterators throw from their next() method when there are no more values to iterate, that work on finite collections ?
View solution
Q. Which method of the iterable object returns an iterator object for the collection?
View solution
Q. Consider the following code snippet:
let succ = function(x) x+1, yes = function() true, no = function() false;
What convenience does the above code snippet provide?
View solution
Suggested Topics
Are you eager to expand your knowledge beyond JavaScript? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!