Why is assigning method to object property not supported on that way:
neki1: pisaniMethod()
It seems like when assigning method to object property is not supported with brackets?
function pisaniMethod(){return 'testing';}
var person = {
neki: pisaniMethod, //this works
neki1: pisaniMethod() //this is not working
};
I guess I was wrong with this:
person.neki1();
I've tried to make a function call on neki1.