--- title: Convert seconds to compound duration id: 596fd036dc1ab896c5db98b1 challengeType: 5 videoUrl: '' localeTitle: '' --- ## Description undefined ## Instructions undefined ## Tests
```yml tests: - text: '' testString: 'assert(typeof convertSeconds === "function", "convertSeconds is a function.");' - text: '' testString: 'assert.equal(convertSeconds(testCases[0]), results[0], "convertSeconds(7259) should return 2 hr, 59 sec.");' - text: '' testString: 'assert.equal(convertSeconds(testCases[1]), results[1], "convertSeconds(86400) should return 1 d.");' - text: '' testString: 'assert.equal(convertSeconds(testCases[2]), results[2], "convertSeconds(6000000) should return 9 wk, 6 d, 10 hr, 40 min.");' ```
## Challenge Seed
```js function convertSeconds (sec) { // Good luck! return true; } ```
### After Test
```js console.info('after the test'); ```
## Solution
```js // solution required ```