// test.js //
var testObj = {};
testObj.init = function(){
console.log('google');
}
var onload = testObj.init;
/// what does it mean, does it mean it gets executed when script loaded or what, I just can’t understand it as it is not looging into console anything under Google Chrome plugin…
Think of it like giving your dog 2 names:
Whether you call
comeHereSpotorcomeHereBoythe same dog will come running.