The speed of sound in air is about 343 meters persecond.Create a code that calculates the distance in 600 seconds | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

The speed of sound in air is about 343 meters persecond.Create a code that calculates the distance in 600 seconds

var sound = 343; var seconds = 600; var distance = seconds * sound; console.long(distance); what's wrong with my code?

29th Aug 2021, 7:19 PM
rozh
rozh - avatar
1 Answer
+ 5
Just a typo, change your last line to console.log(distance);
29th Aug 2021, 7:22 PM
Tim
Tim - avatar