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()
.