So if you don't assign the result of object construction to a variable, but rather just define one anonymously, its own members temporarily available as long as you use dot notation to access them?...
I'm looking at this from memory position angle. Because F's prototype points to the same memory position as P's prototype and because prototype is an object and objects get passed around by reference...
I figured it out. You have to convert the functions into closures using return keyword and then call the function immediately ()() before you try to use it as a private function.
Don't know why javascript behavior acts strange - the correct paragraph fades in right away BUT then back out again, and the wrong one fades in and then the wrong one keeps fading in no...
I have a back button and a forward button. When the first paragraph fades in, back button should be hidden. When the last paragraph fades in, the forward button should be hidden. Yet,...
In the below code, the alert message returns in one instance: 'someAnimal is [Mammal "Mr. Biggles"]'
I don't understand how this is possible. We pass as an argument 'Mr. Biggles' to the Mammal...
I was reading up on this javascript tutorial:
http://www.switchonthecode.com/tutorials/javascript-and-css-tutorial-accordion-menus
Basically, it shows you how to create an accordion...
Thanks for the in-depth reply. By the way, do you know any good javascript books focused purely on game development. I find tons of them using actionscript and flash, but have found none using...