How to use toSource in JavaScript

In this article, I will explain use of toSource() method in JavaScript.
  • 1445

JavaScript toSource() Method

  • toSource() method returns the string "Math".

  • toSource() method does not work with many browsers like IE.




In the following example show to how the toSource() method can be used.



<title>JavaScript Math toSource() Method</title>



<h3 style="color:Blue">JavaScript toSource() Method Example</h3>

<script type="text/javascript">

    var value = Math.toSource();

    document.write("Value of tosource() method: " + value);





tosource method.jpg

You may also want to read these related articles here

Ask Your Question 

Got a programming related question? You may want to post your question here

Programming Answers here


More Articles

© 2018 DotNetHeaven. All rights reserved.