Skip to content

Instantly share code, notes, and snippets.

Created November 9, 2015 14:56

Revisions

  1. @invalid-email-address Anonymous created this gist Nov 9, 2015.
    57 changes: 57 additions & 0 deletions index.html
    Original 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>
    20 changes: 20 additions & 0 deletions jsbin.vopuboqelu.js
    Original 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