Blog
Archive for the JavaScript Category
Definition
A Promise is a special JavaScript object that represents an eventual result of an asynchronous action.
A Promise has two properties:
Promise status.
Promise value.
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…
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…
Factory Function Example
// userCreator is a factory function
function userCreator(name, score) {
// Create an object newUser that includes
Read more…
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 ↑