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!

18th Oct 2022, 6:40 AM
Anil Kumar DEvulapally
Anil Kumar DEvulapally - avatar
2 Respuestas
+ 3
Anil Kumar DEvulapally , Post your tried code
18th Oct 2022, 6:43 AM
Riya
Riya - avatar
+ 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.
18th Oct 2022, 7:15 AM
Ausgrindtube
Ausgrindtube - avatar