Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

JS-KATA: Zip Strings

Implement a zipStrings function in zip-strings.js with the following requirements in mind.

  • The zipStrings function receives two string parameters
  • The zipStrings function should return one string where the characters of both parameters are merged using the zip procedure (Reißverschlussverfahren)
  • Merge the strings as shown in the Zip Strings Example code

Zip Strings Example

console.log(zipStrings("abc", "123")); // "a1b2c3"

console.log(zipStrings("abc", "1")); // "a1bc"

console.log(zipStrings("a", "123")); // "a123"

console.log(zipStrings("", "123")); // "123"

console.log(zipStrings("abc", "")); // "abc"

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages