Skip to content

Instantly share code, notes, and snippets.

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 ethanstenis/b05dfa06e20cc6bccb55f90755f3b3ab to your computer and use it in GitHub Desktop.
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
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