0
Pls, help me this code. Why is nothing being output to console.
function main() { var distance = parseInt(readLine(), 10); var speed=40; var time=(distance/speed)*60; console.log=(time); }
4 Réponses
+ 3
There is no console.log=
console.log is a function so it should be write like this
console.log(time);
+ 2
Привет! = в консоль лог надо бы удалить...
+ 2
спасибо друзья !
+ 1
No need to "=" sign
if the main function didn't declare anywhere(as in onclick, or onsubmit), so call it as main()