how to add function methods to an object in js code example
Example: adding function to objects js
var myObj = {
myFunc: function(param){
//do stuff
}
}
var myObj = {
myFunc: function(param){
//do stuff
}
}