Backbone.JS IdAttribute()

The Backbone.JS IdAttribute() model is used to specify the model’s unique identifier.

Syntax:

Model.IdAttribute   

Example:

 
  
  
Example  
  
  
  
  
  


  

Output:

Unique identifier: id

Explanation:
The unique identifier is set as id.