Javascript

JavaScript Intro

JavaScript Intro Quiz

JavaScript Intro Exercise

JavaScript Basic

JavaScript Basic Quiz

JavaScript Basic Exercise

JavaScript Advance

JavaScript Advance Quiz

JavaScript Advance Exercise

JavaScript ES6

JavaScript ES6 Quiz

JavaScript ES6 Exercise

JavaScript Array Methods and Properties

JavaScript String Methods and Properties

JavaScript Number Methods and Properties

JavaScript Math Properties and Methods

JavaScript Date Methods and Properties

JavaScript Global Methods and Properties

JavaScript RegExp Properties and Methods

JavaScript Class Methods and Keywords

JavaScript Errors, JSON and Booleans

JavaScript Statements

JavaScript Window History Object Properties and Methods

JavaScript Window Location Object Properties and Methods

JavaScript Window Screen Object Properties

JavaScript Window Navigator Object Properties and Methods

JavaScript Window Object Properties and Methods

JavaScript Console Object Methods

JavaScript Geolocation and Storage APIs

JavaScript CSSStyleDeclaration Object Methods and Properties

HTML DOM Documents Object Properties and Methods

DOM HTMLCollection Properties and Methods

HTML DOM Attributes Properties and Methods

HTML DOM Elements Properties and Methods

HTML DOM Style Object Properties

HTML DOM AnimationEvent Properties and Methods

HTML DOM ClipboardEvent Properties and Methods

HTML DOM DragEvent Properties and Methods

HTML DOM FocusEvent Properties and Methods

HTML DOM HashChangeEvent Properties and Methods

HTML DOM InputEvent Properties and Methods

HTML DOM KeyboardEvent Properties and Methods

HTML DOM MouseEvent Properties and Methods

HTML DOM PageTransitionEvent Properties and Methods

HTML DOM ProgressEvent Properties and Methods

HTML DOM StorageEvent Properties and Methods

HTML DOM TransitionEvent Properties and Methods

HTML DOM WheelEvent Properties and Methods

HTML DOM UiEvent Properties and Methods

HTML DOM TouchEvent Properties and Methods

The Event Object Properties and Methods

JavaScript Math Properties and Methods

List of JavaScript Math Properties and Methods

Math.E in JavaScript
The Math.E property is used to return the Euler number. The base of natural logarithms is 2.718.
Math.LN2 in JavaScript
The Math.LN2 property is used to return the natural logarithm of 2. Its value is approximately 0.693.
Math.LN10 in JavaScript
The Math.LN10 property is used to return the natural logarithm of 10. Its value is approximately 2.302.
Math LOG2E in JavaScript
The Math.LOG2E property is used to return the base-2 logarithm of E. Its approximate value is 1.442.
Math.LOG10E in JavaScript
The Math.LOG10E property is used to return the base-10 logarithm of E. Its approximate value is 0.434.
Math.PI in JavaScript
The Math.PI property return PI which is the ratio of a circle area to the square of its radius. Its approximate value is 3.14.
Math.SQRT1_2 in JavaScript
The Math.SQRT1_2 property is used to return the square root of 1/2. Its approximate value is 0.707.
Math.SQRT2 in JavaScript
The Math.SQRT2 property is used to return the square root of 2. Its approximate value is 1.414.
Math.abs() in JavaScript
The Math.abs() method is used to return the absolute value of a number.
Math.acos() in JavaScript
The Math.acos() method is used to return the arccosine of a number as value between 0 and PI radians. It will return -1 when the value is PI.
Math.acosh() in JavaScript
The Math.acosh() method is used to return the hyperbolic arccosine of a number. It will return NaN when the parameter value is less than 1.
Math.asin() in JavaScript
The Math.asin() method is used to return the arcsine of a number as a value between PI/2 and -PI/2 radians. It will return Nan when parameter is outside of 1 to -1.
Math.asinh() in JavaScript
The Math.asinh() method is used to return the hyperbolic arcsine of a number.
Math.atan() in JavaScript
The Math.atan() method is used to return the arctangent of a number. Its value is between -PI/2 and PI/2 radians.
Math.atan2() in JavaScript
The Math.atan2() method is used to return the arctangent of the quotient of its arguments. Its value is between PI and -PI radians.
Math.atanh() in JavaScript
The Math.atanh() method is used to return the hyperbolic arctangent of a number. If the value of the parameter is 1 then it will return infinity.
Math.cbrt() in JavaScript
The Math.cbrt() method is used to return the cubic root of a number.
Math.ceil() in JavaScript
The Math.ceil() method is used to round a number upwards to the nearest integer and then return the result.
Math.clz32() in JavaScript
The Math.clz32() method is used to return the number of leading zeros in a 32-bit binary representation of a number.
Math.cos() in JavaScript
The Math.cos() method is used to return the cosine of a number. It returns a value between 1 and -1.
Math.cosh() in JavaScript
The Math.cosh() method is used to return the hyperbolic cosine of a number.
Math.exp() in JavaScript
The Math.exp() method is used to return the value of Ex, where E is the Euler number and x is the number passed to it.
Math.expm1() in JavaScript
The expm1() method is used to return the value of Ex minus 1 where E is the Euler number and x is the number passed to it.
Math.floor() in JavaScript
The Math.floor() method is used to round a number downwards to the nearest integer and then returns the result.
Math.fround() in JavaScript
The Math.fround() method is used to return the nearest 32-bit float representation of a number.
Math.log() in JavaScript
The Math.log() method is used to return the natural logarithm to the base E of a number.
Math.log10() in JavaScript
The Math.log10() method is used to return the logarithm to the base 10 of a number.
Math.log1p() in JavaScript
The Math.log1p() method is used to return the natural logarithm to the base E of 1 + a number.
Math.log2() in JavaScript
The Math.log2() method is used to return the logarithm to the base 2 of a number.
Math.max() in JavaScript
The Math.max() method is used to return the number with the highest value. Its opposite function is Math.min() which returns the minimum value among all values.
Math.min() in JavaScript
The Math.min() method is used to return the number with the smallest value. Its opposite function is Math.max() which returns the maximum value among all values.
Math.pow() in JavaScript
The Math.pow() method returns the value of x to the power of y. In other words, xy.
Math.random() in JavaScript
The Math.random() method is used to return a random number between 0 and 1.
Math.round() in JavaScript
The Math.round() method is used to round a number to the nearest integer.
Math.sign() in JavaScript
The Math.sign() method is used to return whether a number is negative, positive, or zero. It will return 1 if the number is positive, it will return -1 if the number is negative and it will return 0 for zero.
Math.sin() in JavaScript
The Math.sin() method is used to return the sine of an angle which is given in radians. Its return value ranges from -1 to 1. It measures the angle of the amount of rotation from the initial side to the terminal side.
Math.sinh() in JavaScript
The Math.sinh() method is used to return the hyperbolic sine of a number.
Math.sqrt() in JavaScript
The Math.sqrt() method is used to return the square root of a number.
Math.tan() in JavaScript
The Math.tan() method is used to return the tangent of a number.
Math.tanh() in JavaScript
The Math.tanh() method is used to return the hyperbolic tangent of a number.
Math.trunc() in JavaScript
The Math.trunc() method is used to return the integer part of a number. It will not round up or down the number. It will just simply remove the decimals.