undefined var x=10; console.log(x); VM237:2 10 undefined var x = 10; if (true) { var x = 20; console.log(x); VM386:4 Uncaught SyntaxError: Unexpected end of input var x =10; if (true) { var x =20; console.log(x); } VM527:4 20 undefined var x = 10; console.log(x); if(true) { var x = 20; console.log(x); } VM807:2 10 VM807:5 20 undefined const pi = 21.12; let person = "sandhiya"; let who ='yes i am'; console.log(pi); console.log(person); console.log(who); VM1133:4 21.12 VM1133:5 sandhiya VM1133:6 yes i am undefined let abc = 1; if (true) { let a=2; console.log(abc); } console.log(abc); VM1334:5 1 VM1334:7 1 undefined let abc = 1; if(true) { let abc = 2; console.log(abc); } console.log(abc); VM1564:5 2 VM1564:7 1 undefined let b ="4"+3+6; console.log(b); VM1649:2 436 undefined let c =4+3+5; console.log(c); VM1738:2 12 undefined let a = 3+5+"7"; console.log(a) VM1842:2 87 let $$$ = 2; let $mymoney = 5; console.log($$$); console.log($mymoney);