Methods for defining functions in JavaScript Blog

added by JavaScript Kicks
9/26/2019 8:59:54 AM

460 Views

Generally, a function is a sequence of instructions or a "subprogram" that can be invoked by the code that is external (or internal) to that function. In essence, functions "encapsulate" a particular task. Functions are one of the fundamental building blocks in JavaScript, and really understanding functions can help tackle some of JavaScript's oddities.


0 comments