--- id: 5900f3941000cf542c50fea7 challengeType: 5 title: 'Problem 40: Champernowne"s constant' videoUrl: '' localeTitle: 'Задача 40: постоянная Шампернауне' --- ## Description undefined ## Instructions
## Tests
```yml tests: - text: champernownesConstant(100) должен вернуть 5. testString: 'assert.strictEqual(champernownesConstant(100), 5, "champernownesConstant(100) should return 5.");' - text: '' testString: 'assert.strictEqual(champernownesConstant(1000), 15, "champernownesConstant(1000) should return 15.");' - text: '' testString: 'assert.strictEqual(champernownesConstant(1000000), 210, "champernownesConstant(1000000) should return 210.");' ```
## Challenge Seed
```js function champernownesConstant(n) { // Good luck! return true; } champernownesConstant(100); ```
## Solution
```js // solution required ```