2018-10-08 17:51:51 +00:00
---
2018-10-10 20:20:40 +00:00
id: 5900f36e1000cf542c50fe80
2018-10-08 17:51:51 +00:00
challengeType: 5
title: 'Problem 1: Multiples of 3 and 5'
2018-10-10 20:20:40 +00:00
videoUrl: ''
localeTitle: 'Problema 1: Múltiplos de 3 y 5'
2018-10-08 17:51:51 +00:00
---
## Description
2018-10-10 20:20:40 +00:00
< section id = "description" > Si enumeramos todos los números naturales por debajo de 10 que son múltiplos de 3 o 5, obtenemos 3, 5, 6 y 9. La suma de estos múltiplos es 23. Encuentre la suma de todos los múltiplos de 3 o 5 debajo del parámetro provisto < code > number< / code > valor. < / section >
2018-10-08 17:51:51 +00:00
## Instructions
2018-10-10 20:20:40 +00:00
< section id = "instructions" >
2018-10-08 17:51:51 +00:00
< / section >
## Tests
< section id = 'tests' >
```yml
tests:
- text: < code > multiplesOf3and5(1000)</ code > debe devolver 233168.
testString: 'assert.strictEqual(multiplesOf3and5(1000), 233168, "< code > multiplesOf3and5(1000)< / code > should return 233168.");'
- text: < code > multiplesOf3and5(49)</ code > debe devolver 543.
testString: 'assert.strictEqual(multiplesOf3and5(49), 543, "< code > multiplesOf3and5(49)< / code > should return 543.");'
- text: < code > multiplesOf3and5(19564)</ code > debe devolver 89301183.
testString: 'assert.strictEqual(multiplesOf3and5(19564), 89301183, "< code > multiplesOf3and5(19564)< / code > should return 89301183.");'
- text: Su función no está devolviendo el resultado correcto utilizando nuestros valores de prueba.
testString: 'assert.strictEqual(multiplesOf3and5(8456), 16687353, "Your function is not returning the correct result using our tests values.");'
```
< / section >
## Challenge Seed
< section id = 'challengeSeed' >
< div id = 'js-seed' >
```js
function multiplesOf3and5(number) {
// Good luck!
return true;
}
multiplesOf3and5(1000);
2018-10-10 20:20:40 +00:00
2018-10-08 17:51:51 +00:00
```
< / div >
< / section >
## Solution
< section id = 'solution' >
```js
2018-10-10 20:20:40 +00:00
// solution required
2018-10-08 17:51:51 +00:00
```
< / section >