get the first word of a string javascript

JavaScript
let sentence = "The big brown fox"
let word = sentence.split(" ")[0]

console.log(word) // The
Source

Also in JavaScript: