Blog

Archive for the JavaScript Category


JavaScript Promises
Posted on September 26, 2020 in JavaScript by Matt Jennings

Definition

Promise is a special JavaScript object that represents an eventual result of an asynchronous action.

Promise has two properties:

Promise status.
Promise value.

States of the
Read more…


Callbacks
Posted on September 22, 2020 in JavaScript by Matt Jennings

Definition

A callback is any function that is passed as an argument to another function, and then invoked from within that
Read more…


Basic Examples of Asynchronous Function Using Node.js
Posted on September 22, 2020 in JavaScript, Node.js by Matt Jennings

Running Code Asynchronously

The console.log(number3) code, which outputs the text of the number3.txt file below that is in the same directory
Read more…


Subclassing (Inheritance)
Posted on September 19, 2020 in JavaScript by Matt Jennings

Factory Function Example

// userCreator is a factory function
function userCreator(name, score) {
// Create an object newUser that includes

Read more…


Prototype, new, Scope, this, and Classes Intro
Posted on September 16, 2020 in JavaScript by Matt Jennings

Way to use a prototype (__proto__ property on an object):

function userCreator(new, score) {
const newUser = Object.create(userFunctionStore);
newUser.name
Read more…

To Top ↑