www.webdeveloper.com

Search:

Type: Posts; User: snowguy13

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    1,062

    Prototype Ah, that makes sense. Okay, thank you!

    Ah, that makes sense. Okay, thank you!
  2. Replies
    3
    Views
    1,062

    Prototype Shared Fields and Prototypical Inheritance

    I'm understanding JavaScript objects better now, so next comes inheritance. I know that you can add a field shared by all instances of an Object by referring to its prototype:

    function Object() {}...
  3. So, say, coding var Object = function() { ...

    So, say, coding

    var Object = function() {
    this.name = "an object";
    }


    vs.
  4. But wait... If the point of a certain function is...

    But wait... If the point of a certain function is to act as a constructor for an object, why would you want to limit the scope of that constructor?
  5. Okay. I think I'm starting to like JavaScript,...

    Okay. I think I'm starting to like JavaScript, even though it makes every bone in my Java-programming body ache... :P

    Thank you very much!
  6. Prototypes are Cool

    OOOOOOOOOOOOOOOOO ... *five hours later* ... OOOOOOOHHHHHH!

    Finally, I think I'm beginning to understand the prototype. I wish it didn't take explanations from five different sites. xD

    Thank...
  7. object.prototype with fields

    I've got a follow up question:

    I can see how defining methods in a constructor can take extra time, as each function must be created for every instantiation. However, what about fields? Should I...
  8. Okay, thank you! :D

    Okay, thank you! :D
  9. Using object.prototype vs declaring functions in a constructor

    I've recently begin delving much more into JavaScript and have realized that what I thought I knew before was not very much. That being said, I've programmed some Java so naturally when I came to...
Results 1 to 9 of 9
HTML5 Development Center



Recent Articles