Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Challenge: Calculating the Speed of a Car | Getting Started
Introduction to JavaScript

Swipe to show menu

book
Challenge: Calculating the Speed of a Car

Task

Swipe to start coding

You're helping to create a speed detector for highway patrol! The detector works by measuring how far a car travels and how long it takes. Your job is to calculate the car's speed based on this data.

A car passes the speed detector and is recorded traveling a distance of 100 meters in 5 seconds.

Calculate and output its speed display the result in the console. The speed can be calculated by dividing the amount of distance covered by the time taken to cover that distance.

Solution

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 1. ChapterΒ 6

Ask AI

expand
ChatGPT

Ask anything or try one of the suggested questions to begin our chat

book
Challenge: Calculating the Speed of a Car

Task

Swipe to start coding

You're helping to create a speed detector for highway patrol! The detector works by measuring how far a car travels and how long it takes. Your job is to calculate the car's speed based on this data.

A car passes the speed detector and is recorded traveling a distance of 100 meters in 5 seconds.

Calculate and output its speed display the result in the console. The speed can be calculated by dividing the amount of distance covered by the time taken to cover that distance.

Solution

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 1. ChapterΒ 6
Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
We're sorry to hear that something went wrong. What happened?
some-alt