Skip to content

Latest commit

 

History

History
executable file
·
5 lines (4 loc) · 384 Bytes

File metadata and controls

executable file
·
5 lines (4 loc) · 384 Bytes

Each function has a name that is used to call the function. The name usually describes the purpose of the function and what it does. Functions in JavaScript do not explicitly define return type, so the return; statement is not necessary. Functions can be defined in three ways:

  • using the constructor of the Function object
  • by function declaration
  • by function expression