← Back to challenges

Convert Minutes into Seconds

JavaScriptEasylanguage_fundamentalsmathnumbers

Instructions

Write a function that takes an integer minutes and converts it to seconds.

Examples

convert(5) ➞ 300

convert(3) ➞ 180

convert(2) ➞ 120

Notes

  • Don't forget to return the result.
  • If you get stuck on a challenge, find help in the Resources tab.
  • If you're really stuck, unlock solutions in the Solutions tab.
javascript
Loading editor…
to run
Walks through the solution with reasoning and edge cases.
Next: Return the Next Number from the Integer Passed