Should code-golf submissions written in JS that return a promise be allowed?
For example:
Promise.resolve("hi")
Doesn't output "hi"
, but outputs a promise that resolves with the value of "hi"
. If you want "hi", then
Promise.resolve("hi").then(console.log)
is needed. Should the .then(console.log)
part be required (and therefore part of the byte count)?