What is the purpose of the Math method toSource()?
A
Returns the string “Math”
B
Sends the source to the Math Library
C
Returns the value of the object
D
Returns an integer value
Correct Answer: Returns the string “Math”
The method Math.toSource() returns the string “Math”. But this method does not work with many browsers like IE. The toSource() method returns a string representing the source code of the object.