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(' ');