-
-
Save stevekrouse/6adcbf6b0c3aa04a6543 to your computer and use it in GitHub Desktop.
JS Bin // source http://jsbin.com/vopuboqelu
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 characters
<!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 characters
// 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment