Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Just Javascript  RSS feed

 
Ms. Huggles
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 66141
141
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!