<script type="text/javascript">
'use strict';
var MyTeam = Backbone.Model.extend({
defaults: {
player: "John",
planet: "Mars"
},
});
var MyTeam1 = Backbone.Collection.extend({
model: MyTeam
});
var player1 = new MyTeam({
player: "Sam",
planet: "Venus"
});
var myval=new MyTeam1([player1]);
console.log(myval.models[0].get('player'));
</script>