Function Declaration

Also called a function statement.
This always starts with the keyword "function".
This creates a variable called IsEven in the current scope that holds the function object.
You do not have to put a semicolon at the end.

function IsEven(num) { 
   return num % 2 === 0;

© 2022 Better Solutions Limited. All Rights Reserved. © 2022 Better Solutions Limited TopPrevNext