Creating Hashtags with JavaScript? - JavaScript Code Wars Challenges #4

preview_player
Показать описание
Welcome to the 4th installment in my JavaScript CodeWars journey - will I reach 6 kyu today? Probably.

In this one we create hashtags from a JavaScript string and format a phone number 😎

Follow me on CodeWars:

If this video helped you out and you'd like to see more, make sure to leave a like and subscribe to dcode!

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

Reallly enjoy these! I like how you show your thought process working around the problem

Tyler.Durden
Автор

Loving these. Keep up the series.

const replaceWithNumber = (acc, item) => acc.replace('x', item)

const createPhoneNumber = arr => arr.reduce(replaceWithNumber, '(xxx) xxx-xxxx')

bmehder