InterviewSolution
Saved Bookmarks
| 1. |
Explain the use of Number function in a java script program? |
|
Answer» 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.Explanation:var x1 = true;var x2 = false;var x3 = new Date();var x4 = "999";var x5 = "999 888";var N =Number(x1) + " |
|