0
Why "document.write" is not defined
function main() { var depth = parseInt(readLine(), 10); //your code goes here var count = 0 var sum = 0 while (sum < depth){ sum += 7 sum -= 2 count++ } document.write(count); }
4 Antworten
+ 4
yoel
Node js doesn't have document.write
use console.log
+ 2
or use console.info
Keep learning & happy coding :D
+ 1
oh i thought i didn't spell it right