Skip to content

Instantly share code, notes, and snippets.

@redrambles
Last active September 7, 2021 01:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save redrambles/a456134968496f0fcf53836d11592185 to your computer and use it in GitHub Desktop.
Save redrambles/a456134968496f0fcf53836d11592185 to your computer and use it in GitHub Desktop.
String Product (Cassidoo's Q of the week)
const stringProduct = (str1, str2) => {
const magicProduct = str1 * 1 * str2;
return magicProduct.toString();
};
stringProduct('34', '577'); // '19618'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment