Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function variableDifferences(){
- for(var x = 0; x < 3; x++){ }
- for(let y = 0; y < 3; y++){ } // ReferenceError: y is not defined
- console.log(x) // x is 3.
- }
- test()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement