njdennis94

hoisting blog post 8

Aug 8th, 2018
179
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var num1 = 0
  2.  
  3. function add(x){
  4.     x += 1
  5.     return x
  6. }
  7.  
  8. var add = (x) => {
  9.    x += 3
  10.    return x
  11. }
  12. console.log(add(num1))
RAW Paste Data