Function

Function

An important part of JavaScript is the ability to create new functions within <script> and </script> tag. Declare a function in JavaScript using function keyword. The keyword function precedes the name of the function.