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">
    <title>JS Bin</title>
    <!-- Ace v1.2.9 -->
    <script src="https://cdnjs.cloudflare.com/ajax/libs/ace/1.2.9/ace.js"></script>
</head>
<body>
    <div id="example">
        var a = 1;
        function example () {
            console.log( "Hello World" );
        }
    </div>
    <style>
        #example {
            width: 100%;
            height: 200px;
        }
    </style>
    <script>
        var editor = ace.edit( "example" ); 
        editor.session.setMode( "ace/mode/javascript" ); // 模式(列表[註3])
        editor.setTheme( "ace/theme/twilight" ); // 模板(列表[註2])
    </script>
</body>
</html>
Output 300px

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

Dismiss x
public
Bin info
hsuehmingfangpro
0viewers