Created
August 6, 2020 12:42
-
-
Save dan-laskowski/a9245abf471de03bd1d65c934116f6e6 to your computer and use it in GitHub Desktop.
[Count Syllables] #js #strings
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
function numberSyllables(word) { | |
return word.split(`-`).length | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment