codewars javascript - Mumbling

preview_player
Показать описание


Steps I used to complete this codewars javascript challenge:
1) Convert the string into lower case and split it into an array of letters.

2) Created an empty array.

3) Iterated through the array using a for loop

4) Repeated each item in the array using "index + 1" equation
{result: ['a', 'bb', 'ccc'... etc.]}

5) Mapped over every item in the array and replace every boundary word character to it's upper case equivalent.

6) Joined the string with a '-'.

7) Return.

To complete this challenge I used:

Рекомендации по теме
Комментарии
Автор

This is really good one of the most underrated lecture on a 7kyu from Codewars

JosephAM
Автор

good on ya man! sweet solution to a complex problem. There are easier ones available for sure but your's is quite interesting. Different approaches are always welcome! Your recording and explanations are great! Btw. my desktop looks the same! (I always take screenshots of js solutions etc, never know when you gonna need them! haha) :)

meloniada
Автор

thank you... But! Please do something with your you constantly rubbing on microphone and it is very annoying.

Vitonolable
join shbcf.ru