JS - Coach Bug ? Speed of Sound | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grátis
+ 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 Respostas
+ 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