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>
</head>
<body>
</body>
</html>
 
var myModule = {
  stuff: [1, 2, 4, 5],
  first: function(){
    console.log(this.stuff);
    this.stuff.pop();
    return this;  
  },
  second: function(){
    console.log(this.stuff);
    return this;  
  }
};
myModule.first().second();
Output

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

Dismiss x
public
Bin info
jaywonpro
0viewers