JSFiddle - React, Tailwind, and code Playground
by vineet85
HTML
<script src="http://code.jquery.com/jquery-1.9.0.js"></script>
JavaScript
var Vehicle = Backbone.Model.extend(
{prop1: '1',
initialize: function() {
console.log('vehicle created');
}
},
{
summary: function()
{return "Vehicles are for travelling";}
}
);
//Property
var v = new Vehicle();
v.prop1 = 'ford'
console.log(v.prop1);
//Class Property
console.log(Vehicle.summary());