Backbone.JS get()

The Backbone.JS get() model returns the value of an attribute in the model.

Syntax:

Model.get(attribute)   

Parameters:
attribute: This parameter is used to define properties of a model.

Example:

  
 
   
Example  
  
  
  
  
  
  

Output:

The FIRST Message: HELLO

Explanation:
The Backbone.JS get() model is returning the value of the MSG1 in the model.