--

Thanks for you comment.

Both are kind of similar but here's the main difference that I can think of:

- Function declaration save the `VariableEnvironment` component as their [[Scope]] property, and Function expressions save `LexicalEnvironment`.

--

--

Amandeep Singh
Amandeep Singh

Written by Amandeep Singh

Developer @ Domain Sydney. Tech enthusiast and a pragmatic programmer. If coding is hard, you are not doing it right.

Responses (1)