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

6th Dec 2020, 3:00 AM
๐•ฎ๐–๐–—๐–Ž๐–˜๐–™๐–Ž๐–“๐–†
๐•ฎ๐–๐–—๐–Ž๐–˜๐–™๐–Ž๐–“๐–† - avatar
5 Answers
+ 4
The code works fine for me. There's another problem.
6th Dec 2020, 4:40 AM
Tomรกs CL ๐Ÿ‡จ๐Ÿ‡บ (temporarily inactive)
Tomรกs CL ๐Ÿ‡จ๐Ÿ‡บ (temporarily inactive) - avatar
+ 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.
7th Dec 2020, 12:12 AM
๐•ฎ๐–๐–—๐–Ž๐–˜๐–™๐–Ž๐–“๐–†
๐•ฎ๐–๐–—๐–Ž๐–˜๐–™๐–Ž๐–“๐–† - avatar
+ 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
7th Dec 2020, 12:13 AM
๐•ฎ๐–๐–—๐–Ž๐–˜๐–™๐–Ž๐–“๐–†
๐•ฎ๐–๐–—๐–Ž๐–˜๐–™๐–Ž๐–“๐–† - avatar
+ 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
6th Dec 2020, 8:39 PM
Jayakrishna ๐Ÿ‡ฎ๐Ÿ‡ณ
+ 2
Jayakrishna๐Ÿ‡ฎ๐Ÿ‡ณ Yeah sorry, it's the Speed of Sound code quiz
7th Dec 2020, 12:10 AM
๐•ฎ๐–๐–—๐–Ž๐–˜๐–™๐–Ž๐–“๐–†
๐•ฎ๐–๐–—๐–Ž๐–˜๐–™๐–Ž๐–“๐–† - avatar