Function Declaration vs Function Expression: What’s the Difference?
JavaScript Functions (Declaration vs Expression)
Before functions, imagine writing the same logic again and again.
Example.
let a = 2
let b = 3
console.log(a + b)
let x = 5
let y = 6
console.log(x +
devnotez.hashnode.dev4 min read