Update declare-a-read-only-variable-with-the-const-keyword.english.md

pull/19447/head
Prabhat Kumar Sahu 2018-10-13 16:59:46 +05:30 committed by Kristofer Koishigawa
parent c1d5ad8aa8
commit e5ebcec171
1 changed files with 14 additions and 1 deletions

View File

@ -67,6 +67,19 @@ printManyTimes("freeCodeCamp");
<section id='solution'>
```js
// solution required
function printManyTimes(str) {
"use strict";
// change code below this line
const SENTENCE = str + " is cool!";
for(let i = 0; i < str.length; i+=2) {
console.log(SENTENCE);
}
// change code above this line
}
printManyTimes("freeCodeCamp");
```
</section>