0

can you plz solve first challenge of JavaScript i did not understand the road trip challenge because it is not letting console how to print plz help me

1/23/2022 4:18:34 PM

+3

Clear your basic fundamentals then you will know everything about it. Here is your code: function main() { var distance = parseInt(readLine(), 10); //your code goes here var minutes = distance /40*60; console.log(minutes) } /// # Note: You need to read the code, too!

+3

Just write this into your code console.log((distance/40) * 60)

+1

+1

function main() { var distance = 40; parseInt(readLine(), 10); //your code goes here var miles = 150; var result = (miles / distance); }

+1

+1

Sorry I forgot ti say can you also post the challenge π

+1

Gahahha ok wait

+1

You need to plan a road trip. You are traveling at an average speed of 40 miles an hour. Given a distance in miles as input (the code to take input is already present), output to the console the time it will take you to cover it in minutes. Sample Input: 150 Sample Output: 225

+1

Explanation: It will take 150/40 = 3.75 hours to cover the distance, which is equivalent to 3.75*60 = 225 minutes

+1

function main() { var distance = parseInt(readLine(), 10); //your code goes here }

+1

π₯π³π΄π ππ·πΈππ½π°π½π³π°π½ πΌπΈππ·ππ°π₯ thank you so much brother clear ha

+1