From e5ebcec171b09f2875824d9ea3f0e0e40998d6f0 Mon Sep 17 00:00:00 2001 From: Prabhat Kumar Sahu Date: Sat, 13 Oct 2018 16:59:46 +0530 Subject: [PATCH] Update declare-a-read-only-variable-with-the-const-keyword.english.md --- ...nly-variable-with-the-const-keyword.english.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/es6/declare-a-read-only-variable-with-the-const-keyword.english.md b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/es6/declare-a-read-only-variable-with-the-const-keyword.english.md index 092da4945a..15acc1b027 100644 --- a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/es6/declare-a-read-only-variable-with-the-const-keyword.english.md +++ b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/es6/declare-a-read-only-variable-with-the-const-keyword.english.md @@ -67,6 +67,19 @@ printManyTimes("freeCodeCamp");
```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"); ```