JS Demystified 02 — Function Hoisting
Misa Ogura
552

In the 5th example, I tried to call hello method after the ‘hello’ function definition. I was expecting ‘Hey!’ to be printed but ‘Hello!’ was printed. Can you tell why?

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.