DEV Community

Discussion on: πŸ”₯πŸ•ΊπŸΌ JavaScript Visualized: Hoisting

Collapse
 
namkwon profile image
Nam Kwon

Great article! What about const function? ex. const sum = (x,y) => x+y

Collapse
 
swasdev4511 profile image
Swastik Upadhye

When it comes to const ... They should be assigned some value at the tym of declaration.... So anyway we will get an error if we try to access them b4 declaration

Collapse
 
beginwithjs profile image
beginWithJS

You may consider it as the "hoisting variable const" situation.