Using JavaScript, write a function that accepts a string and logs it.
Add the JavaScript code that iterates through each of these words using a
for
loop and concatenates them into a sentence. Don't forget to add spaces!
const words = ["The", "quick", "brown", "fox"]