# Author: Krishnaa

## How to Get the Absolute Value of a Number in Javascript

In this tutorial, you will learn how to get the absolute value of a number in javascript. Absolute value is measured based on the distance from zero that a number is on the number line, without taking direction in consideration. In layman terms, the value that you get after removing any negative sign in front

## How to Check if a Number is Positive or Negative in Javascript

In this tutorial, you will learn how to check if a number is positive or negative in javascript. The numbers below zero are negative numbers and similarly, the numbers above zero are positive numbers. For example, 1 is a positive number and -1 is a negative number. A negative number is always prefixed with a

## How to Get Pi Value in Javascript

In this tutorial, you will learn how to get Pi value in javascript. Pi is a constant in mathematics that represents the ratio of the circumference of any circle to the diameter of that circle. To get the value of Pi, we can make use of the Math object.  This object contains a lot of

## How to Find Cube of a Number in Javascript

In this tutorial, you will learn how to find cube of a number in javascript. To get the cube of a number, we have to multiply the number by itself thrice. For example, the cube of 3 is 9, as 3 × 3 x 3 = 9. Calculating the cube of a number can be

## How to Find Square of a Number in Javascript

In this tutorial, you will learn how to find square of a number in javascript. To get the square of a number, we have to multiply the number by itself twice. For example, the square of 2 is 4, as 2 × 2 = 4. Calculating the square of a number can be tricky if