How to define functions inside a function body in JavaScript?
Answers
Answered by
0
Functions are one of the fundamental building blocks in JavaScript. A function is a JavaScript procedure—a set of statements that performs a task or calculates a value. To use a function, you must define it somewhere in the scope from which you wish to call it.
Answered by
0
with function scope, the parameters and variables that define as part of a function are not available outside the function body .
Similar questions