Update declare-a-read-only-variable-with-the-const-keyword.english.md
This commit is contained in:
committed by
Kristofer Koishigawa
parent
c1d5ad8aa8
commit
e5ebcec171
@ -67,6 +67,19 @@ printManyTimes("freeCodeCamp");
|
|||||||
<section id='solution'>
|
<section id='solution'>
|
||||||
|
|
||||||
```js
|
```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>
|
</section>
|
||||||
|
Reference in New Issue
Block a user