What is the class and object in JavaScript

20 pts.
Tags:
JavaScript
In JavaScript, what does this mean? Particularly the class and object.
var store = new Store("bakaaro");

store.addItem("bariis", 33);

store.addItem("bur", 23)

console.log(store.getItems());


Software/Hardware used:
js bin
1

Answer Wiki

Thanks. We'll let you know when a new response is added.
 var store = new Store(“bakaaro”);
store.addItem(“bariis”, 33);
store.addItem(“bur”, 23)
  

console.log(store.getItems());
    

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • ToddN2000
    Are you looking for us to tell you what is what in the code?
    Try this site for a lot of good Javascript info W3SCHOOLS
    133,800 pointsBadges:
    report
  • carlosdl
    You are creating a new "Store" object, which is some kind of list or collection, and then you are adding items to it.

    Pretty basic.

    If you really have problems understanding that, then you need to follow Todd's suggestion.
    84,805 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: