1.

What will be the output of the following code?<script>let bar = 1;foo = {};foo: {bar : 2;baz : ++bar;};document.write(foo.baz + foo.bar + bar);</script>(A) NaN(B) 5(C) 4(D) 1

Answer»


Discussion

No Comment Found

Related InterviewSolutions