codeburst

Bursts of code to power through your day. Web Development articles, tutorials, and news.

Follow publication

JS Demystified 02 — Function Hoisting

Misa Ogura
codeburst
Published in
4 min readAug 8, 2017

--

Intro

Test Your Knowledge

Function Hoisting

Example 1.
Example 2.

Function Declaration vs Function Expression

Example 3. Function declaration
Example 4. Function expression

Function Expressions are Not Hoisted

Example 2.

Wrap-up

// Answers to example 4 and 5Hello!
Hello!

--

--

Published in codeburst

Bursts of code to power through your day. Web Development articles, tutorials, and news.

Written by Misa Ogura

Senior Machine Learning Engineer @Healx | Creator of github.com/MisaOgura/flashtorch | Published Scientist | Co-founder of @womendrivendev

Responses (6)

Write a response