Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<script src="http://documentcloud.github.io/underscore/underscore-min.js"></script>
<script src="http://documentcloud.github.io/backbone/backbone-min.js"></script>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
  
</body>
</html>
 
var Vehicle = Backbone.Model.extend(
  {}, // 1st argument - object - for configuring the Model instance
  {   // 2nd argument - object - for defining class properties
    summary: function() { return "sdssdf"; }
  }
);
console.log(Vehicle.summary());
Output

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

Dismiss x