What is going on with this ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is going on with this ?

At https://www.sololearn.com/coach/359?ref=app That thing wants an output of a given number of seconds like 3 multiplied by 343 to get the distance of sound so the output when we put 3 is 1029 It's supposed to be like this var seconds = 3; var distance_of_sound = seconds * 343; document.write(distance_of_sound) That seems fine , alright , but why is this resulting in bizarre outputs with jabbering i don't get saying that my output is wrong ?

16th Sep 2020, 8:49 PM
Enthusiastic Mind
Enthusiastic Mind - avatar
4 Answers
+ 2
How are you able to access pro code coaches...? And i think, there are no code coaches for javascript..
16th Sep 2020, 9:08 PM
Jayakrishna 🇮🇳
+ 2
Oh. In that case add description.. Am not able to access.. Iam will delete my answer if I can't find.. Hope Some one else will answer.. Am not sure I can get it about node.js.. I try if it is js only. And Enthusiastic Mind try console.log(distance_of_sound) ;
16th Sep 2020, 9:33 PM
Jayakrishna 🇮🇳
+ 2
Enthusiastic Mind document object does not belong to Javascript language. It's available in web browsers only. "Use console.log() to perform an output to the console." -Copied from challenge description.
16th Sep 2020, 9:38 PM
Kevin ★
0
Jayakrishna🇮🇳 it was attached in the course and it didn't require any pro accounts , i guess it was in Node.js
16th Sep 2020, 9:18 PM
Enthusiastic Mind
Enthusiastic Mind - avatar