JavaScript
JavaScript textContent Property
Text content makes up a lot of webpages (or HTML documents) and knowing how to access and update them is useful and with the JavaScript textContent property we …
JavaScript Double Exclamation Mark Usage
To coerce values of a binding to Boolean type, we can make use of the javascript double exclamation mark and the Boolean method
JavaScript replaceWith() Method
To make use of the JavaScript replacewith method, we need to reference the element/node that we want changed and add the new element/node as an argument. Also, …
JavaScript Thenable Object
JavaScript thenable is an object that holds or implements the then() method and can have two callbacks, one for when the Promise is fulfilled, and one for when …
Math.abs() Method in JavaScript
The Math.abs() method allows us to get the absolute value of a number, and can come useful in certain mathematical operations we carry out in JavaScript.
