Blog posts filed under “Functions”
- Returning boolean values in JavaScript
- Get a random truthy/falsy value in JavaScript
- Return values in JavaScript functions
- Chaining function calls in JavaScript
- Detect if a function was invoked as a constructor in JavaScript
- Unique array values in JavaScript
- Understanding callback functions in vanilla JS
- Asynchronous callback functions in vanilla JS
- How to wrap a function in a Promise in vanilla JS
- Consuming promises in vanilla JS
- Async functions in vanilla JS
- Prevent leaking arrow functions in vanilla JS
- The .prototype property versus the [[Prototype]] internal slot in JavaScript
- Four ways to set the prototype of an object in JavaScript
- Subclassing with prototypes in JavaScript
- Extending constructors in JavaScript
- An alternative to the super keyword in JavaScript
- Three ways to pass extra arguments to a function in JavaScript
- Currying and partial application in JavaScript
- When should you use an arrow function in JavaScript?
- Method definitions versus function properties in JavaScript
- First-class functions in JavaScript