I am looking for this stackoverflow question to be answered in Javascript. So if my input is “word”, the function should return: word, Word, wOrd, WOrd, woRd, WoRd, etc.. here’s what i have so far but it only produces the permutations (doesn’t capitalize anything) Answer One option would be generating capitalization permutations via binary logic. As a simple example of