Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>JS Bin</title>
  <script src="https://traceur-compiler.googlecode.com/git/bin/traceur.js"
        type="text/javascript"></script> `
    <script src="https://traceur-compiler.googlecode.com/git/src/bootstrap.js"
        type="text/javascript"></script> 
  
  <script type="text/traceur">
    module carFactory{
      
      var wheels = 4;
      
      export var ford = {
        make : 'Ford',
        wheels : wheels
      };
      
      export function go( car ){
        console.log( car.make + ' goes zooooooom!' );
      };
      
      export var moduleName = "Car Factory";
    }
    
    import * from carFactory;
    
    go( ford );
    
    console.log( moduleName );
  </script>
</head>
<body>
  
</body>
</html>
Output

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

Dismiss x
public
Bin info
bittersweetryanpro
0viewers