Olorunfemi Akinlua

Olorunfemi Akinlua

at · 174 articles published

Boasting over five years of experience in JavaScript, specializing in technical content writing and UX design. With a keen focus on programming languages, he crafts compelling content and designs user-friendly interfaces to enhance digital experiences across various domains.

Areas of expertise

Articles by Olorunfemi Akinlua

How to detect ad block in JavaScript? [SOLVED]

For us to detect ad blockers we will need to implement a JavaScript file that will be triggered when the ad blockers stop the rendering of the bait html

How to send TAB key in JavaScript? [SOLVED]

Aside from the alphanumeric characters, different keys are used for numerous operations. Certain functions keys are used for help, documentation or running

How to sort by date in JavaScript? [SOLVED]

Use the sort method to sort by date in JavaScript

How to use math.ceil in JavaScript? [SOLVED]

The math.ceil function also referred as js math ceiling will round up the decimal to a whole number

How to wait 5 seconds in JavaScript? [SOLVED]

Use setTimeout to wait for 5 seconds in JavaScript

How to clear all timeouts in JavaScript? [SOLVED]

Use cleartimeout() to clear all timeouts in JavaScript

How to call a function every second in JS [SOLVED]

Learn how to call a function every second in JavaScript using powerful timing mechanisms like setInterval, enabling dynamic and interactive web experiences with …

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 …

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 …

How to add days to date in JavaScript? [SOLVED]

Use getDate and setDate method to add days to date in 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 …

Create Unique Array of Objects in JavaScript [SOLVED]

Create javascript unique array by getting unique values from the array using different methods using the filter methods and set object

How to use Math power in JavaScript [SOLVED]

To perform math power operations in JavaScript, we can make use of the ** operator and the pow method, however, only the ** operator works with the Number and …

How to round down a number JavaScript [SOLVED]

Different method to round down in JavaScript. Method-1: Using the round method. Method-2: Using the floor method. Method-3: Round down using the trunc method

Check if string contains spaces in JS [SOLVED]

There are different methods to check if staring contains spaces in javascript. Method-1: Use indexOf. Method-2: Use Regular Expressions