njdennis94

hoisting blog post 7

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