CATEGORY

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 …

By olorunfemiakinlua · 3 min read · JavaScript

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

By olorunfemiakinlua · 3 min read · JavaScript

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, …

By olorunfemiakinlua · 3 min read · JavaScript

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 …

By olorunfemiakinlua · 6 min read · JavaScript

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.

By olorunfemiakinlua · 3 min read · JavaScript