function scope1(){ var top = 'top'; bottom = 'bottom'; console.log(bottom); var bottom; } function scope2(){ var top = 'top'; var bottom; bottom = 'bottom' console.log(bottom); } scope1(); scope2(); What will log in console if the above two functions are of java script - Study24x7
Social learning Network
28 Jun 2020 12:41 AM study24x7 study24x7

function scope1(){ var top = "top"; bottom = "bottom";
console.log(bottom);
var bottom;
} ...

See more

A

bottom bottom

B

bottom

C

Nothin

D

gives error

study24x7
Write a comment
Related Questions
500+   more Questions to answer
Most Related Articles