Welcome aboard! We are happy you are here and wish you good net-raft!
<script type="text/javascript"> 
var Rank = Backbone.Model.extend({
defaults: {
lang: '',
rank: 3,
},
validate: function(attributes) {
if (attributes.lang == '') {
document.write("please enter the language name!");
}
}
});
var rank = new Rank({
lang: 'backbone.js'
});
document.write("The passed value for attribute 'name' is: ", rank.get("lang")); 
</script> 
The most helpful BACKBONE.JS solutions
How to get country from client ip address using backbonejs ?BACKBONE.JS Click to see more ... 947 84