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!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
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 Réponse
+ 5
Just a typo, change your last line to console.log(distance);
29th Aug 2021, 7:22 PM
Tim
Tim - avatar