sammybaks show your code and the submission result, please.

Or else you can skip this task and get back to it later.

10 days later


igual estoy atorado en esta

// add constants
export const rideSpeed = 10
export const rideTime = 5

//add imports and console.log

import { rideSpeed, rideTime} from "./constants";

const distance = rideSpeed + rideTime
console.log(distance)

    2 months later

    import { rideSpeed,rideTime } from "./constant.js";

    My code is not working .Below is the error

    1. In the file solution.js`` console.log must be called once

    2. In the file solution.js, console.log must take the calculated distance as an argument
      function distance(a,b){
      return a * b
      }

    const dist = distance(rideSpeed * rideTime)

    console.log(dist)

      4 months later
      22 days later

      //--------constants.js----
      export const rideSpeed = 4;
      export const rideTime = 6;
      //----------solution.js------
      import {rideSpeed, rideTime} from './constants.js'

      function distance(a,b){
          return a+b;
      }
      console.log(distance(rideSpeed,rideTime))

      output: error:

      In the file solution.js, console.log must take the calculated distance as an argument

        9 days later

        hareesh the distance is calculated as a product of speed and time, not their sum.

        function getDistance(speed, time){
            return speed * time;
        }
        Write a Reply...