This question already has an answer here:
- Default for Code Golf: Input/Output methods 80 answers
Should code-golf submissions written in JS that return a promise be allowed?
"hi", but outputs a promise that resolves with the value of
"hi". If you want "hi", then
is needed. Should the
.then(console.log) part be required (and therefore part of the byte count)?