Skip to content

rouvenkahmann/zip-strings

Folders and files

NameName
Last commit message
Last commit date

Latest commit

24c9a02 · Dec 7, 2023

History

1 Commit
Dec 7, 2023
Dec 7, 2023
Dec 7, 2023
Dec 7, 2023

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

Watchers

Forks

Releases

No releases published

Packages

No packages published