Copyright © tutorialspoint.com

Javascript Math - toSource Method

previous next

Advertisements


Description:

This method returns the string "Math". But this method does not work with many browsers like IE.

Syntax:

Math.toSource() ;

Here is the detail of parameters:

Return Value:

Returns the string "Math".

Example:

<html>
<head>
<title>JavaScript Math toSource() Method</title>
</head>
<body>
<script type="text/javascript">

var value = Math.toSource( );
document.write("Value : " +  value ); 
  
</script>
</body>
</html>

This will produce following result:

Value : Math 

To understand it in better way you can Try it yourself.


previous next

Copyright © tutorialspoint.com