Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let x = 1;
- if (x === 1) {
- let x = 2;
- console.log(x);
- // expected output: 2
- }
- console.log(x);
- // expected output: 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement