Articles & Tutorials
for you to read...
- Passing Arguments in Javascript
You can pass arguments into functions to be used within the function. These arguments can be any JavaScript data type including functions.
- Factory Function To Create An Object In JavaScript
Use a constructor function that returns an object. You can then create multiple people passing in the first and last name arguments the `createPerson` function.
- Understanding Closures In JavaScript
This example shows how you create a closure in JavaScript it uses an alert function that can be incremented and reused/passed around.