Backbone.JS Defaults()

The Backbone.JS Defaults() model is used to set a default value to a model.

Syntax:

Model.Defaults  

Example:

  
  
  
Example  
  
  
  
  
  
  

Output:

Thanks for everything.

Explanation:
The Defaults set a default value for the SUBJECT and MSG of the model.