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 Answers
+ 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()