--- id: 5900f36e1000cf542c50fe80 challengeType: 5 title: 'Problem 1: Multiples of 3 and 5' videoUrl: '' localeTitle: 'Problema 1: Múltiplos de 3 e 5' --- ## Description
Se listarmos todos os números naturais abaixo de 10 que são múltiplos de 3 ou 5, obtemos 3, 5, 6 e 9. A soma desses múltiplos é 23. Encontre a soma de todos os múltiplos de 3 ou 5 abaixo do parâmetro fornecido. number valor.
## Instructions
## Tests
```yml tests: - text: multiplesOf3and5(1000) deve retornar 233168. testString: 'assert.strictEqual(multiplesOf3and5(1000), 233168, "multiplesOf3and5(1000) should return 233168.");' - text: multiplesOf3and5(49) devem retornar 543. testString: 'assert.strictEqual(multiplesOf3and5(49), 543, "multiplesOf3and5(49) should return 543.");' - text: multiplesOf3and5(19564) deve retornar 89301183. testString: 'assert.strictEqual(multiplesOf3and5(19564), 89301183, "multiplesOf3and5(19564) should return 89301183.");' - text: Sua função não está retornando o resultado correto usando nossos valores de teste. testString: 'assert.strictEqual(multiplesOf3and5(8456), 16687353, "Your function is not returning the correct result using our tests values.");' ```
## Challenge Seed
```js function multiplesOf3and5(number) { // Good luck! return true; } multiplesOf3and5(1000); ```
## Solution
```js // solution required ```