Created
November 9, 2015 14:56
Revisions
-
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,57 @@ <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>JS Bin</title> </head> <body> <script id="jsbin-javascript"> // use a function // alert("CHANGE ME"); gi // use another function //var a = Math.round(Math.random() * 10); // print a to the console //console.log(a); // define a function that returns a random number 100 and 200 function myRandom() { return Math.round(Math.random() * 100 + 100); } // use your defined function console.log(myRandom()); // define a function with parameters // use your defined function with parameters </script> <script id="jsbin-source-javascript" type="text/javascript">// use a function // alert("CHANGE ME"); gi // use another function //var a = Math.round(Math.random() * 10); // print a to the console //console.log(a); // define a function that returns a random number 100 and 200 function myRandom() { return Math.round(Math.random() * 100 + 100); } // use your defined function console.log(myRandom()); // define a function with parameters // use your defined function with parameters </script></body> </html> This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,20 @@ // use a function // alert("CHANGE ME"); gi // use another function //var a = Math.round(Math.random() * 10); // print a to the console //console.log(a); // define a function that returns a random number 100 and 200 function myRandom() { return Math.round(Math.random() * 100 + 100); } // use your defined function console.log(myRandom()); // define a function with parameters // use your defined function with parameters