ended3월 14일· 3 sources

Function Declaration vs Function Expression: What's the Difference?

함수 선언문 vs 함수 표현식: 차이점은 무엇인가?

Why it matters

The article explains the difference between function declarations and function expressions in JavaScript. Function declarations use the `function` keyword with a name and are hoisted, making them available before their line in the code, while function expressions assign anonymous functions to variables and are not hoisted. Both produce identical results when called, but differ in syntax and hoisting behavior.

3
Sources
+0
24h
Growth
187d
Active
anonymous functionargumentsfunction declarationfunction expressionhoistingjavascriptparameters

Sources

Related Issues