I have a JS definition like this in a .js file which is included in my .html file.
function chat() {
this.sendNew() = function() {
[ .. ]
}
}
Now I want to add another .js file which can extend this function with more methods, like this
function chat() {
this.anotherMethod = function() {
}
}
Is this possible? If yes, how? :)