Blog
Archive for the JavaScript Category
Someone in the comments asked how how then can return only URLs containing “abc” or “defg”. The info below contains …
Read more
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.
A promise can …
Read more
Callbacks
Posted on September 22, 2020 in JavaScript by Matt Jennings
A callback is any function that is passed as an argument to another function, and then invoked from within that …
Read more
The console.log(number3) code, which outputs the text of the number3.txt file below that is in the same directory as the …
Read more
// userCreator is a factory function
function userCreator(name, score) {
// Create an object newUser that includes
// the …
Read more