1. #1
    Sencha User
    Join Date
    Apr 2011
    Posts
    2
    Vote Rating
    0
    saggammahesh is on a distinguished road

      0  

    Default is concept class is there in javascript?why extjs people are using the word class?

    is concept class is there in javascript?why extjs people are using the word class?


    According to my knowledge in javascript,there are objects and we can create objects for a function or we can create objects using literal notation..i never seen the concept of class in javascript.recently i have started to learn EXTJS(a javascript library)..in EXTJS people are saying like predefined classes(eg.EXt,Panel etc.) are there and even in api docs they are writing as class..it does not make sense to me..my questions are

    1.why **extjs** people are using the word **"CLASS"**?

    2.if class concept is there in extjs what way i have to think it?

    3.is there a concept "CLASS" in js(i think no)?

  2. #2
    Sencha - Community Support Team jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    DC Area =)
    Posts
    16,364
    Vote Rating
    81
    jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all

      0  

    Default


    Quote Originally Posted by saggammahesh View Post
    According to my knowledge in javascript,there are objects and we can create objects for a function or we can create objects using literal notation..i never seen the concept of class in javascript.recently i have started to learn EXTJS(a javascript library)..in EXTJS people are saying like predefined classes(eg.EXt,Panel etc.) are there and even in api docs they are writing as class..it does not make sense to me..my questions are

    1.why **extjs** people are using the word **"CLASS"**?

    2.if class concept is there in extjs what way i have to think it?

    3.is there a concept "CLASS" in js(i think no)?
    Thanks for describing Ext JS :P.

    The *reason* we use class is because Ext.extend helps bring JavaScript's Prototypal Inheritance behavior into a psuedo-classical nature. JavaScript doesn't have classic "classes" as you know it. Simply put, Ext JS's codebase behaves more like Classes than just plain objects.

Similar Threads

  1. Dynamic Javascript Class Load and Instantiation
    By gcallaghan in forum Sencha Touch 1.x: Discussion
    Replies: 4
    Last Post: 21 Dec 2010, 11:35 AM
  2. JavaScript Class Help
    By putty in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 14 May 2008, 12:27 AM
  3. general javascript question (MultiCallbackManager class)
    By code_berzerker in forum Ext 1.x: Help & Discussion
    Replies: 6
    Last Post: 29 May 2007, 6:13 AM

Thread Participants: 1

Tags for this Thread