Yes, this is a huge noise for every language. The best javascript implementation in Codechef is through node.js. This is for the first exercise "Life, the Universe and Everything":
process.stdin.resume(); process.stdin.setEncoding('utf8'); process.stdin.on('data', function (chunk) { var lines = chunk.toString().split('\n'); lines.forEach(function(line) { if (line === '42') { process.exit(); } process.stdout.write(line+'\n'); }); });
It worked for me.
source share