Advertisement
njdennis94

hoisting blog post 1

Aug 8th, 2018
481
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. console.log(x) // x is undefined
  2. var x = 0
  3.  
  4. console.log(plus()) // 3
  5.  
  6. function plus(){
  7.   let y = 2
  8.   return x + y
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement