Can someone tell me me how to make word combinations in javascript. I am new to programming. I did this
var words=["word1","word2","word3","word4"];
Ex:
words: [
"word1",
"word2",
"word3",
"word4"
]
output:
"word1 word2",
"word1 word3",
"word2 word3",
"word1 word2 word3",
"word2 word3 word4",
"word1 word3 word4"