ConvertersLesson 325Free preview
Convert Speed
This lesson is part of How To · All levels
Summary
The speed converter changes the value between kilometers per hour, meters per second, miles per hour, and knots. The key to the calculation is to equate the units of time and distance before comparing the values. JavaScript can read inputs, use conversion factors, and then display results with clear units.
Key points
- One meter per second is equal to 3.6 kilometers per hour.
- For km/h to m/s, divide by 3.6.
- One mile an hour is equal to 1,60934 miles an hour.
- 1 knot is equal to 1,852 kilometers per hour
- Make sure the results always include the units used
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.