function is a block of statements, which is written to perform a particular task. A function declaration is also termed as Function Statement. When we create a function and assigned to a variable like any other value then it is called function expression. In Javascript, functions are first-class citizens, meaning functions can be treated like any else.

•4m read time•From faheemkhan97.hashnode.dev
Post cover image
Table of contents
What is a function?Function declarationFunction ExpressionFunction Statement vs ExpressionParameters and return statementArguments vs ParametersFirst Class FunctionsAnonymous Function
1 Comment

Sort: