CATEGORY

JavaScript

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 …

By olorunfemiakinlua · 2 min read · JavaScript

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

By olorunfemiakinlua · 3 min read · JavaScript

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

By olorunfemiakinlua · 3 min read · JavaScript

Leetcode’s Two Sum Problem Solution

The pair sums leetcode problem can be solved using multiple methods such as using brute force in for loop, using objects or using maps

By olorunfemiakinlua · 5 min read · JavaScript