Backbone.JS View Initialize()

The Backbone.JS View Initialize() method is used to instantiate the view by using new keyword.

Syntax:

new View (options)   

Parameters: options: This parameter is used to specify the values to be passed to the function.

Example:

  

  
Example  
  
  
  
  
  
  
  
  

Output:

HELLO WORLD!!

Explanation: In the above example the new keyword instantiate the view.

Please follow and like us:
Content Protection by DMCA.com