0
"Repetition is the mother of learning, the fathtect of accomplishment." - Zig Ziglar. Inspired by these words, let's create a li
create a little program that will output an expression which is given as input, 3 times. Task Complete the code to output the given expression 3 times. Sample Input Learning is fun! Sample Output Learning is fun! Learning is fun! Learning is fun! i had finished the case 1 and case 2 is not satisfying ? case 2: Test Case 2 Input JS is awesome! Your Output Learning is fun! Learning is fun! Learning is fun! Expected Output JS is awesome! JS is awesome! JS is awesome!
2 Respuestas
+ 3
Anil Kumar DEvulapally ,
Post your tried code
+ 1
It looks like you have hard coded the answer, something like console.log("Learning is fun!");
That's not the correct way, you need to accept the input. E.g. var text = input, then output(text) 3x, maybe using a for loop.