Created
July 13, 2017 18:32
-
-
Save ethanstenis/b05dfa06e20cc6bccb55f90755f3b3ab to your computer and use it in GitHub Desktop.
This is the solution for Codewars' Exclamation marks series #4 KATA: Remove all exclamation marks from sentence but ensure a exclamation mark at the end of string
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 remove(s){ | |
//coding and coding.... | |
return s.split('!').join('') + '!'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment