Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Function Returning Object Saved To A Variable

Backbone.Model.extend = function(name)
{
return {"name":name}
}


var x = Backbone.Model.extend("name me name me");
console.log(x.name);
 
PREVIOUS NEXT
Tagged: #Function #Returning #Object #Saved #To #A #Variable
ADD COMMENT
Topic
Name
5+4 =