Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<body>
<div id="root"></div>
<script type="text/javascript">
    var divNode = document.createElement('div');
    divNode.innerText = 'Hello World';
    var rootElement = document.querySelector('#root');
    rootElement.appendChild(divNode);
</script>
</body>
</html>
Output

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

Dismiss x
public
Bin info
anonymouspro
0viewers