What to write here (last point?)? import { rideSpeed, rideTime } from "./constants"; console.log(rideSpeed, rideTime);
import { rideSpeed, rideTime } from "./constants"; console.log(rideSpeed, rideTime);
How to get distance from rideSpeed and rideTime?
Younis The distance is the product of speed and time, thus you should multiply them.
just multiply rideSpeed and ride Time example; var distance = rideSpeed * rideTime; console.log(distance);
Thank you. 😄 import {rideSpeed, rideTime} from "./constants.js"; let distance = rideSpeed * rideTime; console.log(distance);
import {rideSpeed, rideTime} from "./constants.js"; let distance = rideSpeed * rideTime; console.log(distance);
Younis exactly 🙂
Coderslang_Master
Hi! Please tell me, I don't understand why problem 99 is handled by my answer.
import {rideSpeed, rideTime} from "./constants.js "; let distance = (rideSpeed * rideTime); console.log(distance);
doubleleline could you post the file constants.js as well?
constants.js