JavaScript is a scripting language which means we can write our code line by line and save it as a script file name dot JS and JavaScript will execute that script file. It helps to wrap a particular piece of script and helps to identify what a particular set of script is doing or what it is required to do.
Table of contents
What are Functions in JavaScript?What is Pure function?What is Impure Function?ConclusionSort: