Junior — Senior
What will console.log output in the given JavaScript fragment
livecode
Task condition
Determine what value will be printed to the console after executing the following code:
var a = {};
if (a === {}) {
a = 123;
}
console.log(a);
livecode
Task condition
Determine what value will be printed to the console after executing the following code:
var a = {};
if (a === {}) {
a = 123;
}
console.log(a);