Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
    <script src="http://cdnjs.cloudflare.com/ajax/libs/polymer/0.1.4/platform.js"></script>
</head>
<body>
    <current-date></current-date>
  
    <script>
     var proto = Object.create(HTMLElement.prototype);
     proto.createdCallback = function() {
       this.innerHTML = new Date();
     };
     document.registerElement('current-date', {prototype: proto});
    </script>
</body>
</html>
Output

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

Dismiss x
public
Bin info
anonymouspro
0viewers