if i have a function as a property of an object, do function closure rules still apply? i remember reading that a function is an object, but i also understand that an object is not a function.
More specifically can i grab and edit the other properties inside the same object without referencing the object in that function? Here's an example:
someObj = {
property : 44,
calculate : function(){
property * moreproperties;
};
or do i do this?
someObj = {
property : 44,
calculate : function(){
someObj.property * someObj.moreproperties;
};