Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
    <!DOCTYPE html>
    <html>
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width">
        <script type="text/javascript">
            function hello(name) {
                return `Hello! ${name}!`;
            }
        </script>
        <script type="module">
            window.onload = function() {
                let welcome = document.getElementById('welcome');
                welcome.innerHTML = hello(prompt('Input your name'));
            };
        </script>
    </head>
    <body>
        <span id="welcome"></span>
    </body>
    </html>
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
JustinSDKpro
0viewers