Backbone.JS Unset()

The Backbone.JS Unset() model removes an attribute from a backboneJS model.

Syntax:

Model.Unset(attribute)   

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

Example:

  
  
  
Example  
  
  
  
  
  

Output:

Message after SET: HELLO WORLD
Message after UNSET: undefined

Explanation:
After UNSET the message is undefined.