JavaScript(or JS) enables users to create interactive webpages and is an essential code to learn for websites and web applications. Most modern websites use JavaScript.
The JavaScript Reference serves as library to define various JS elements such as arrays, date, json, math, operators and regular expressions (regexp) to help you build your website.
JavaScript Number
JavaScript has only one type of number. Numbers can be written with, or without, decimals.
For Example:
var x = 3.14;
var y = 34;
NAME
DESCRIPTION
CATEGORY
isFinite()
Checks if a value is a finite number
Methods
isInteger()
Checks if a value is an integer
Methods
isNaN()
Checks if a value is Number.NaN
Methods
isSafeInteger()
Checks if a value is a safe integer
Methods
toExponential(x)
Converts a number into an exponential notation
Methods
toFixed(x)
Formats a number with x numbers of digits after the decimal point