Explain the use of Number function in a javascript program
Answers
Answered by
1
Answer:
Hiiiiiiiiiiiiiiiiiii
Answered by
1
Answer:
is it helpful?
Explanation:
The Number() function converts the object argument to a number that represents the object's value.
If the value cannot be converted to a legal number, NaN is returned.
Syntax
Number(object)
Parameter Values
Parameter Description
object. Optional. A JavaScript object. If no argument is provided, it returns 0.
Technical Details
Return Value: A Number. Returns different object values to their numbers. If the value cannot be converted to a legal number, NaN is returned. If no argument is provided, it returns 0.
JavaScript Version: ECMAScript 1
Similar questions