Articles & tutorials
- 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.