repl.it
@Tyledelphia/

getAllWords-1

JavaScript

No description

fork
loading
main.js
1
2
3
4
5
6
7
8
9
10
11
12
  function getAllWords(str) {
  let wordArray = [];
  for (let i = 0; i < str.split(' ').length; i++) {
     
    wordArray.push(splits)
    }
    return wordArray;
  }

  getAllWords('The quick brown fox jumped over the lazy dog')

Native Browser JavaScript