Update declare-a-read-only-variable-with-the-const-keyword.english.md
parent
c1d5ad8aa8
commit
e5ebcec171
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue