What would be the output of below regular expression code: /e/.exec("The best things in life are free!");
Correct Answer: e
Explanation:
Note: This Question is unanswered, help us to find answer for this one
JavaScript Skill Assessment
Your Skill Level: Poor
Retake Quizzes to improve it
More JavaScript MCQ Questions
Which statement is incorrect regarding HTML5 Web Worker?
What's the output? var foo = function foo() { console.log(foo === foo); }; foo();
Which is incorrect way of instantiating a date?
How would you change the date to one week later assuming myDate is a date object?
Event that fires when the form element textarea loses the focus?
What would be printed to the console? function foo(arg) { console.log(Math.pow(this, arg)) } setTimeout(foo.bind(5, 2), 0); console.log('Done');
What will the below operation give you? var a = 14 var b = 9 console.log(a & b)
for the following code: function foo() { var funcs = []; for (var i = 0; i < 10; i++) { funcs.push(function () { alert('value of i is ' + i); }); } return funcs; } var funcs = foo(); funcs[0](); what will be alerted?
Which can have a different value depending on who invoked the function accessing it?
Output when the following code is executed? console.log(false == '0', false === '0')