Javascript Object Oriented Programming - different ways of creating Classes and Methods

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
2,986
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jan 15, 2011

I go over several different ways you can write classes and methods in Javascript when doing object oriented programming

Download Link for files:
http://www.freetutorialsrock.com/forum/viewtopic.php?f=9&t=12

Category:

Education

Tags:

License:

Standard YouTube License

  • likes, 3 dislikes

Link to this comment:

Share to:

Uploader Comments (FreeWebTutorialsRock)

  • prototype is not a function/method of javascript. it's an object.

  • @kelvin0yt ya, your probably right, I'm not 100% good with all the terms and stuff, I"m writing these tutorials while I'm learning myself.

Video Responses

This video is a response to What is JavaScript?
see all

All Comments (8)

Sign In or Sign Up now to post a comment!
  • You forgot the litteral way, the JSON way of writing objects, which the lightest way

  • While many people refer to classes in JavaScript, the fact is that JavaScript is not class based and does not have classes. It is a Prototypical language, where all objects inherit from a prototype object (not class).

    Additionally, your examples are commented to say that properties/menthods would go into the object constructors, but only your fist example does that. The second two show declaring methods outside of the constructor.

  • nice

  • @breakingthebeat yes, (almost) everything is a object

  • nice

  • Is JavaScript actually a Object oriented programming language?

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more