Articles by Olorunfemi Akinlua
Less Than or Equal to Operator in JavaScript
Learn how the less than or equal to operator works in JavaScript with number, string, and type coercion examples.
jQuery If Statement Examples
Learn how to use if, else if, and else logic in jQuery-driven scripts with practical condition checks and output examples.
jQuery Special Characters and Escaping Selectors
Learn how to handle special characters in jQuery selectors with escapeSelector(), quoted selectors, and safe string encoding examples.
Promise.all() in JavaScript with Examples
Learn how Promise.all() works in JavaScript with parallel promise examples, rejection behavior, and real output.
Math.floor() in JavaScript with Examples
Learn how Math.floor() works in JavaScript with rounding down examples, integer conversion, and random number generation.
JavaScript trim(): Remove Whitespace from Strings
Learn JavaScript trim(), trimStart(), and trimEnd() with input-cleanup examples, whitespace handling, and practical form validation use cases.
JavaScript replaceAll() for String Replacement
Learn JavaScript replaceAll() with string and regex examples, plus how to replace every matching value in a string.
JavaScript unshift(): Add Items to the Start of an Array
Learn JavaScript unshift() with array examples, return values, mixed data, and how to add one or more items to the beginning of an array.
JavaScript toLowerCase(): Convert a String to Lowercase
Learn JavaScript toLowerCase() with string conversion examples, case-insensitive comparisons, search normalization, and common use cases.
JavaScript toFixed(): Round Numbers to Decimal Places
Learn JavaScript toFixed() with rounding examples, string return values, precision gotchas, and how to convert the result back to a number.
JavaScript Timing Events with setTimeout and setInterval
Learn JavaScript timing events with setTimeout(), setInterval(), clearTimeout(), clearInterval(), and practical examples for delayed code.
Wait for Async Function to Finish in JavaScript
Learn how to wait for an async function to finish in JavaScript with await, then(), Promise.all(), and practical output examples.
replaceAll() with Regex in JavaScript
Learn how to use replaceAll() with regex in JavaScript with string replacement, regex patterns, and callback examples.
Use Variable Inside Regex in JavaScript
Learn how to use a variable inside regex in JavaScript with RegExp, template literals, and practical replacement examples.
JavaScript XOR (^) Operator Explained
Learn JavaScript XOR with bitwise examples, numeric output, bit toggling, and practical uses for the exclusive OR operator.
Math.ceil() in JavaScript with Examples
Learn how Math.ceil() works in JavaScript with rounding up examples, negative numbers, and practical integer conversion cases.
JavaScript Wait 5 Seconds with setTimeout
Learn how to wait 5 seconds in JavaScript with setTimeout(), plus a Promise-based delay example and real timer output.
Create a Unique Array in JavaScript
Learn how to create a unique array in JavaScript with Set, filter(), and findIndex() examples, including how to remove duplicate objects by key.
Math.pow() and Power Operator in JavaScript
Learn how to use Math.pow() and the exponentiation operator in JavaScript with Number, BigInt, and practical power examples.
Round Down a Number in JavaScript
Learn how to round down numbers in JavaScript with Math.floor(), Math.trunc(), and comparison with Math.round() examples.
Pair Sum LeetCode Solution in JavaScript
Learn how to solve the LeetCode pair sum problem in JavaScript with brute force and hash map examples, plus tested output.
JavaScript Thenable Objects and Promise.resolve()
Learn JavaScript thenables, Promise.resolve adoption, thenable vs promise differences, and how thenable objects work with await.
Math.abs() in JavaScript with Examples
Learn how Math.abs() works in JavaScript with absolute value examples, type coercion behavior, and difference calculations.
JavaScript trimEnd() Method Explained
Learn JavaScript trimEnd() with trailing whitespace examples, plus trimStart() and trim() comparisons.
JavaScript toString() Method with Examples
Learn how JavaScript toString() works with numbers, arrays, booleans, and how it differs from JSON.stringify().
JavaScript for Loop with Index Examples
Learn how to get the index in JavaScript for loops with for...of, entries(), for...in, and practical index output examples.
JavaScript chain functions: nested calls, method chaining, map filter reduce
How to chain functions in JavaScript: javascript chain functions, js chain functions, function chaining in javascript, nested calls f(g(h(x))), fluent return this APIs, array pipelines filter map reduce, and pipe vs …
JavaScript arrow function: fat arrow syntax, this, return object, tutorial
How arrow functions work in JavaScript: js arrow function, arrow function javascript, javascript fat arrow => syntax, concise vs block body, js arrow function return object with parentheses, lexical this vs methods, no …
JavaScript array unique: Set, filter, reduce, Map, and NaN pitfalls
How to dedupe arrays in JavaScript: javascript array unique, js array unique, javascript unique array, distinct array javascript with Set spread, Array.from, filter plus indexOf, reduce plus includes, for loops, Map by …
JavaScript object literals: syntax, shorthand, spread, and JSON
Create objects with property pairs, shorthand keys, computed keys, methods, spread, and JSON.parse — all from object literal syntax.
