mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-01-26 03:02:39 -05:00
1.2 KiB
1.2 KiB
id, title, localeTitle, challengeType
| id | title | localeTitle | challengeType |
|---|---|---|---|
| cf1111c1c11feddfaeb6bdef | Divide One Number by Another with JavaScript | Divide un número por otro con JavaScript | 1 |
Description
/ para la división.
Ejemplo
myVar = 16 / 2; // assigned 8
Instructions
0 para que el quotient sea igual a 2 .
Tests
tests:
- text: Haz que el <code>quotient</code> variable sea igual a 2.
testString: 'assert(quotient === 2, "Make the variable <code>quotient</code> equal to 2.");'
- text: Usa el operador <code>/</code>
testString: 'assert(/\d+\s*\/\s*\d+/.test(code), "Use the <code>/</code> operator");'
Challenge Seed
var quotient = 66 / 0;
After Test
console.info('after the test');
Solution
var quotient = 66 / 33;