3

NEED AN URGENT HELP HERE!!!

As much as I try to stay away from the satanic language that is javascript, I have to read up on it if I need to pass this semester.
Guide me towards the different types of objects in javascript, anyone?
Here's what I know so far- js treats everything as an object, but what I don't know is that are there categories? [the "everything" referring to the primitive data types]

Comments
  • 7
    You are doing it wrong. Instead of writing this you could have written to words on google, having then millons of explanations.
  • 1
    Array
    Object
    Function
    String
    Float
    Double
    Integer
    ...

    oh wait, that's constructors :p
  • 0
    @geronimo unfortunately I did resort to google, it didn't turn out to be much help [probably because I couldn't sort out the actual information]. The next best thing was devrant, so...
  • 0
    @FrodoSwaggins there can't be truer words
  • 0
    @irene afaik these are the primitive data types, are there any subtypes of type 'object'? that is what i asked originally
  • 3
    @soumik-dev look, I'm not trying to bash you here, this is just an advice. If you're going to have a carrer as a programmer, you must get used to use Google to solve issues. And this is a fairly simple one.
    Try again. Maybe you didn't find anything because you're not clear about what you want to find.
  • 2
    Gluttony, Sloth, Wrath, Pride, Lust etc.
  • 0
    @geronimo I got that, truce fellow dev! And I do google and stackoverflow my problems, I've got an exam due tomorrow and devrant is, to put it in simple terms, my last straw :-)
  • 2
    @soumik-dev ok fine, here's the primitive types:

    - God
    - NaziPug
    - Maybe
    - LittleTorvalds

    Be aware: don't do typeof God, you'll enter in an infinite recursive loop, which will burn your microprocessor (and send you to hell also).

    Happy coding! 😀
  • 2
    I have found this useful
    http://javascript.info/
  • 0
    I don't really understand the question... What exactly are you asking for? ^^'
  • 0
    @Krokoklemme types of objects JS has available. Got it right, though. The original question set by my professor was wrong to begin with in the first place.
  • 1
    @thevariableman thank you so much!!!
  • 1
    @soumik-dev there are no "types of objects" as such

    There's only objects, that are practically just a collection of key-value pairs and functions. You have to keep in mind that JavaScripts object-oriented aspect is NOT class-based, it's a prototype-based system
Add Comment