Skip to content

Latest commit

 

History

History
14 lines (11 loc) · 370 Bytes

drive-to-the-sun.md

File metadata and controls

14 lines (11 loc) · 370 Bytes

The distance from the earth to the sun is 150 million kilometers. A person is driving to the sun at a speed of 60 kms/hr. Calculate the time in years required to reach the Sun by the person.

Note: It should be assumed 365 days per year.

Starting Answer

let distanceToSun = 150000000;
let drivingSpeed = 60;
let timeInYears = ;
console.log(timeInYears);