- A 098
- B 98
- C Error
- D Undefined
- Share this MCQ
Answer:
B
Share this MCQ
The valueOf() method returns the primitive value of a number. In the above example, the value of num would be 98.
When you call the valueOf() method on a number, it returns the primitive value of that number. For instance, the value of num in the above case would be 98.
The valueOf() method returns the primitive value of a number. In the given example, the primitive value of num would be 98.
The valueOf() method returns the underlying value of a number. So, in the above case, the value of num would be 98.
Share this MCQ