Curios about JS objects

Discussion in 'JavaScript' started by Stefany93, Jan 2, 2012.

  1. #1
    Dear colleagues,






    I am very sorry to annoy you, but I have recently started to learn JS and have stuck with the objects section. I mean, now I know what objects are and how they are useful, but I was wondering, are the user made objects really useful, and what will be they useful for the future, because to be honest, I think what I could do the same operation with the simple variables than using user made objects, so please guys explain it to me.




    Thank you so much!




    Best Regards



    Stefany
     
    Stefany93, Jan 2, 2012 IP
  2. JohnnySchultz

    JohnnySchultz Peon

    Messages:
    277
    Likes Received:
    4
    Best Answers:
    7
    Trophy Points:
    0
    #2
    if you know OOP (object-oriented programming), you can use the javascript objects to it.
     
    JohnnySchultz, Jan 3, 2012 IP
  3. AlexanderZ

    AlexanderZ Member

    Messages:
    28
    Likes Received:
    1
    Best Answers:
    1
    Trophy Points:
    48
    #3
    They are useful, they allow you to make self containing code, that is reusable and maintainable, without clouding the global namespace with variables.

    en.wikipedia.org/wiki/Object-oriented_programming
     
    AlexanderZ, Jan 3, 2012 IP