CodeWars || Split Strings || JavaScript || Code Challenge

Pubblicato il: 04 gennaio 2021
sul canale di: Iuliia Saprykina
3,154
46

Complete the solution so that it splits the string into pairs of two characters. If the string contains an odd number of characters then it should replace the missing second character of the final pair with an underscore ('_').

Examples:

solution('abc') // should return ['ab', 'c_']
solution('abcdef') // should return ['ab', 'cd', 'ef']


In questa pagina del sito puoi guardare il video online CodeWars || Split Strings || JavaScript || Code Challenge della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Iuliia Saprykina 04 gennaio 2021, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 3,154 volte e gli è piaciuto 46 spettatori. Buona visione!