|
This forum is not a free coding service or homework repository. As a general rule, the people helping out in this forum don't write code for others (especially code that appears to be for homework), but try to help with fixing code that doesn't work. You may perhaps get someone to write this script for you, but you'll be far more likely to get help if you have made a substantial effort and written some code yourself. Then someone here will almost certainly help you correct/improve your work.
There is no such Javascript command as println. That is a Java command. Are you sure you are in the right forum? Java and Javascript are entirely different programming languages, in spite of the confusingly similar names. Rather like Austria and Australia!
Quizmaster: Name an instrument which can be found hanging on the wall in many households.
Contestant: A piano.
__________________
All the code given in this post has been tested and is intended to address the question asked.
Unless stated otherwise it is not just a demonstration.
Last edited by Philip M; 02-24-2013 at 05:08 PM..
|