www.webdeveloper.com
Results 1 to 3 of 3

Thread: Novice javascript seeking help !

  1. #1
    Join Date
    Jan 2014
    Posts
    1

    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
    Location
    Somewhere behind your screen
    Posts
    1,648
    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.
    xxx: Guess Buddhist riddle: "What is the sound of one hand clapping?"
    yyy: facepalm

  3. #3
    Join Date
    Mar 2007
    Location
    localhost
    Posts
    2,366
    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.
    Yes, I know I'm about as subtle as being hit by a bus..(\\.\ Aug08)
    Yep... I say it like I see it, even if it is like a baseball bat in the nutz... (\\.\ Aug08)
    I want to leave this world the same way I came into it, Screaming, Incontinent & No memory!
    I laughed that hard I burst my colostomy bag... (\\.\ May03)
    Life for some is like a car accident... Mine is like a motorway pile up...

    Problems with Vista? :: Getting Cryptic wid it. :: The 'C' word! :: Whois?

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



Recent Articles