> For the complete documentation index, see [llms.txt](https://javascriptuse.gitbook.io/advanced/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://javascriptuse.gitbook.io/advanced/13.-learn-backbone.js-tutorial-from-scratch-for-beginners-part-16-model-inheritance-in-backbone.js.md).

# 13. Learn backbone.js tutorial from scratch for beginners(Part 16) Model Inheritance in backbone.js

![](https://2726517656-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M1E4Gk2ppVKb4olmnun%2F-MS4F_iTENrYtokTdLx4%2F-MS4KsgZc_hZy8j2Bj9q%2FScreenshot_11.jpg?alt=media\&token=b0ce00a0-c77c-420b-8c15-5d2f18ee1ea7)

C:\Users\Administrator\Desktop\gulp\app.js

```
jQuery(document).ready(function($) {
  var FirstModel = Backbone.Model.extend({
    initialize: function() {
    },
    Playing: function() {
    	console.log("Inheritance Model");
    }
  });
  fmodel2 = FirstModel.extend({});
  fmodel3 = new fmodel2();
  var ModelView = Backbone.View.extend({
  	model: fmodel3,
  	initialize: function() {
  		this.render();
  	},
  	render: function() {	
  		fmodel3.Playing()
  	}
  });
  vmodel = new ModelView();
});
```

![](https://2726517656-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M1E4Gk2ppVKb4olmnun%2F-MS4F_iTENrYtokTdLx4%2F-MS4L_vVq3P0XtW5HEJn%2FScreenshot_1.jpg?alt=media\&token=ceb7869d-ad8b-4700-ad57-d1b90e3725ef)

C:\Users\Administrator\Desktop\gulp\app.js

```
jQuery(document).ready(function($) {
  var FirstModel = Backbone.Model.extend({
    initialize: function() {
    },
    Playing: function() {
    	console.log("Parent Inheritance Model");
    }
  });
  fmodel2 = FirstModel.extend({
  	Playing: function() {
    	console.log("Child Inheritance Model");
    }
  });
  fmodel3 = new fmodel2();
  var ModelView = Backbone.View.extend({
  	model: fmodel3,
  	initialize: function() {
  		this.render();
  	},
  	render: function() {	
  		fmodel3.Playing()
  	}
  });
  vmodel = new ModelView();
});
```
