If anyone is having problems handling the input/output while using javascript go here and select javascript v8 as your language. You can grab the input with readline()
and give an output using print()
.
Dont forget to add a new line in the end of the input ex:"123\n" or else you will get an undefined out of readline()
.
Thank you. This was helpful 4 years later.
Well, is JS a feasible language for codeforces? or should i just let it go and continue with c++