CATEGORY

JavaScript

insertBefore() JavaScript Method Tutorial

The insertBefore JavaScript method requires two parameters: the node to be inserted and the reference node in the document before which you would like the node …

By olorunfemiakinlua · 3 min read · JavaScript

How to find elements in DOM in JavaScript? [SOLVED]

Use the document.getElementById() method, document.querySelector() method, document.getElementsbyTagName, document.getElementsbyClassName method to get elements …

By olorunfemiakinlua · 4 min read · JavaScript

Using not (!) inside 'if' statement in JS [SOLVED]

If you want to negate a if statement, we can do so using the NOT operator which reverses the Boolean value, and so changes it from true to false or from false …

By olorunfemiakinlua · 2 min read · JavaScript