Functions in JavaScript
What is a function?
A function is a reusable piece of code that takes some input, performs some task and returns a value. A function stores a piece of code that we want to use repeatedly.
To use a function, we call that function by its name.
// Defin...
bobby-sadhwani.hashnode.dev4 min read