-
-
Save redrambles/a456134968496f0fcf53836d11592185 to your computer and use it in GitHub Desktop.
String Product (Cassidoo's Q of the week)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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