Javascript examples for Function:Function Return
return the value of PI:
<!DOCTYPE html> <html> <body> <p id="demo"></p> <script> function myFunction() {// w ww.j a va2 s .c o m return Math.PI; } document.getElementById("demo").innerHTML = myFunction(); </script> </body> </html>