Concatenation mean adding two string or character, addition mean sum of two number, in the following example is explaining the difference of adding two numbers and adding one number and character.
If you put a number in inside a double or single quote the javascript is consider it as a string (not number).
parseFloat() in javascript The parseFloat() function parses a string argument and returns a floating point number. parseFloat is a top-level function and is …Read More
toExponential() in javascript The toExponential() method returns a string representing the Number object in exponential notation.ParametersfractionDigits …Read More
toFixed() in javascript The toFixed() method formats a number using fixed-point notation.digitsOptional. The number of digits to appear after the decimal …Read More
toPrecision() in javascript The toPrecision() method returns a string representing the Number object to the specified precision. A string r…Read More
parseInt() in javascript The parseInt() function parses a string argument and returns an integer of the specified radix (the base in mathematical numeral s…Read More
0 nhận xét:
Đăng nhận xét