+ 2
JS - Coach Bug ? Speed of Sound
Tried two ways of solving it but it just doesn't work despite working perfectly on Playground. It's really bothering me I wanna delete the app, lmao. What's wrong with these? I. var x =600; var z =343; var y =(600*343); console.log(y) II. var distance =(343*600); console.log(distance)
5 Respostas
+ 4
The code works fine for me. There's another problem.
+ 3
Jayakrishna🇮🇳 Create a program that calculates and outputs to the console the distance the sound covers in 600 seconds.Use console.log() to output to the console the result. You need to multiply the seconds variable by the speed of sound, which is 343.
+ 3
Tomás Corrales Lemoine I don't know what it may be because it works fine for me too in playground. I'll try on desktop next time
+ 2
Is there it not need to take user input?
What there it asked exactly...?
Edit :
𝕮𝖍𝖗𝖎𝖘𝖙𝖎𝖓𝖆
Not understanding still, I mean, is it not need of taking input?
If you already mentioned all about problem then it may asking only console.log(343*600);
If it is not solved still then,
Ok. A similar question, may it is same code coach question is here, hope it helps or explains it clearly...
https://www.sololearn.com/discuss/2598383/?ref=app
+ 2
Jayakrishna🇮🇳 Yeah sorry, it's the Speed of Sound code quiz