What will be in the alert box? let a = {}; a.foo = 'bar'; let b = {a}; alert(b);
Correct Answer: [object Object]
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
What's the output? ? var foo = 123e5; var bar = 10; var foobar = foo + bar; console.log(foobar)
How do you remove property a from this object? let a = {a:1, b:2};
How can you get the type of the variable?
What will be logged to the console? const a = new Promise(function (resolve, reject) { setTimeout(resolve, 100 * .9, '1'); }); const b = new Promise(function (resolve, reject) { setTimeout(reject, .9 * .0, '2'); }); Promise .race([a, b]) .then((value) => { console.log(value); });
What will be logged in console? const data = [{a: true, b: false}, {a: false, b: true}]; let result = false; let sample; while (sample = data.pop()) { result = sample.a; } console.log(result);
Be it a = 500 a >> 5 is the same as
Evaluate: ![]+[]
What's the output? !function(){ console.log('!') }();
Be it a = 101 and p = 3 The operation a << p yields the same result as:
var x = ~1001 + '123' << 2; What is the value of x?