Correct Answer: this
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
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?
What will the below operation give you? var a = 14 var b = 9 console.log(a & b)
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');
var x = 1.0; typeof x;
var myObject = { foo: 'bar', func: function() { var self = this; console.log('outer func: this.foo = ' + this.foo); console.log('outer func: self.foo = ' + self.foo); (function() { console.log('inner func: this.foo = ' + this.foo); console.log('inner func: self.foo = ' + self.foo); }()); } }; myObject.func();
Which is incorrect way of instantiating a date?
What's the output? var foo = function foo() { console.log(foo === foo); }; foo();
Which statement is incorrect regarding HTML5 Web Worker?
What's the output? /e/.exec('The best things in life are free!');
What's the output? if(typeof(Storage)!=='undefined') { localStorage.age=5; sessionStorage.age=5; alert(localStorage.age + sessionStorage.age); } else { alert('Sorry, your browser does not support web storage...'); }