Skip to content

Instantly share code, notes, and snippets.

Created November 9, 2015 14:56
Show Gist options
  • Save anonymous/8c0e523500b3796e341c to your computer and use it in GitHub Desktop.
Save anonymous/8c0e523500b3796e341c to your computer and use it in GitHub Desktop.
JS Bin // source http://jsbin.com/vopuboqelu
<!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>
// 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