getting this object js code example
Example 1: adding function to objects js
var myObj = {
myFunc: function(param){
//do stuff
}
}
Example 2: js create object with properties
var mycar = new Car('Eagle', 'Talon TSi', 1993);
var myObj = {
myFunc: function(param){
//do stuff
}
}
var mycar = new Car('Eagle', 'Talon TSi', 1993);