From 846eecbb6a068d681ed351475692e959671b3829 Mon Sep 17 00:00:00 2001 From: Romello Goodman Date: Sun, 14 Oct 2018 21:32:16 -0400 Subject: [PATCH] Reverses the sentence --- javascript/reverse_sentence.js | 1 + 1 file changed, 1 insertion(+) create mode 100644 javascript/reverse_sentence.js diff --git a/javascript/reverse_sentence.js b/javascript/reverse_sentence.js new file mode 100644 index 00000000..ddc22a0e --- /dev/null +++ b/javascript/reverse_sentence.js @@ -0,0 +1 @@ +const reverse = str.split(' ').reverse().join(' ');