Backbone.JS Extend()

The Backbone.JS Extend() model extends the Backbone.model class while creating a backbone model.

Syntax:

Backbone.Model.Extend( properties, classProperties )    

Parameters:
properties: This parameter is used to specify the instance properties for the Model class.
classProperties: This parameter is attached to the constructor function.

Example:

  
  
  
Example  
  
  
  
  
  


  

Output:

Hello World!

Explanation:
The Backbone.JS Extend() model will extend the Backbone.model class while creating a backbone model.