Skip to content
Advertisement

How to add a letter the end of each word per its word index? [closed]

I have a problem about adding a letter the end of each word per its word index.

I cannot handle with that. How can I fix it?

Here is my code shown below.

JavaScript

Advertisement

Answer

Here is the solution with the usage of repeat method.

JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement