Results 1 to 3 of 3

Thread: Novice javascript seeking help !

  1. #1
    Join Date
    Jan 2014

    Novice javascript seeking help !

    HI, I'm very new to Javascript and i was wondering if anybody could please help me with this code. I'm not sure what to do:

    question: Use object-oriented JavaScript to model a public library with three classes: library, shelf, and book. The library should be aware of a number of shelves. Each shelf should know what books it contains. Make the book object have "enshelf" and "unshelf" methods that control what shelf the book is sitting on. The library should have a method to report all books it contains.

    Any help would be greatly appreciated thanks!

  2. #2
    Join Date
    May 2006
    Somewhere behind your screen
    in consideration of your 'question' i would suspect that you are not that 'very new' to Javascript. if you were the one your question most likely was about document.getElementById or maybe loops and i haven't noticed a banner like 'free homework service' on this forum.
    signature under construction

  3. #3
    Join Date
    Mar 2007
    Yep, I was wondering where the Neon sign was that said "Free Homework Service" as well.

    Beginners don't get given OO type scripting, its mainly loops, arrays, outputting to the document and build on previous items learnt.

    If you use google to search, you will find examples of this question with attempts to provide an answer.
    --> JavaScript Frameworks like JQuery, Angular, Node <--
    ... and please remember to wrap code with forum BBCode tags:-

    [CODE]...[/CODE] [HTML]...[/HTML] [PHP]...[/PHP]

    If you can't think outside the box, you will be trapped forever with no escape...

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center