JavaScript Functions

Basically, A group of statements is known as a function. We can identify function with this syntax function demo(){//function body}. We have to call it to perform any task or run statements in it. We use functions to execute code whenever we want. The other benefit of function is saving memory because functions run whenever … Read more