I saw this for lots of other languages but not JavaScript.
I\'m trying to do problems like: this (codechef.com) and of course the programs need to be able to read
In some environments like interviewstreet's, they provide you with a function in which all the input is coming as an argument in form of a string.
All of the input at once.
Then you have to parse that input to get various tokens out of that string.
After this you should be good to write the code further.