This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes Just Javascript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Just Javascript" Watch "Just Javascript" New topic
Author

Just Javascript

Ms. Huggles
Greenhorn

Joined: Sep 19, 2009
Posts: 1
Hello,

I am in a class that has me lost since we entered functions and arrays used together. I need some help.

My assignment is to create a Javascript (program) array to display the 12 months of the year along with the total number of each month in a table.

I am sure she ment days.

Would I do an array like:
[0] = January
[1] = Feburary
and so on

or would it be more like:
month [January, Feburary......]

would I use a do while loop to get the days for each month? would I write a function using a switch statement for all the months ?

As you can see I am very very lost here.

God I need a personal tutor!

Thanks
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60048
    
  65

Welcome to the Ranch!

Please take the time to choose the correct forum for your posts. This forum is for questions on Applets. For more information, please read this.

This post has been moved to a more appropriate forum.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
 
subject: Just Javascript
 
Similar Threads
Date - calulate new to x number of months?
regarding date in javascript
MySQL query to fill HTML combo box?
Very new to Java
arrays - varied locations allowed?