Psst: Open the JavaScript Console and try to play around with these functions:
const t = new Trie();
t.addWord("fun").addWord("fast").addWord("fat").addWord("fate").addWord("father").addWord("forget").addWord("awesome").addWord("argue");
t.getWords() // should return ["fun", "fast", "fat", "fate", "father",
"forget", "awesome", "argue"]
t.autoComplete("fa") // should return ["fast", "fat", "fate",
"father"]
t.removeWord("fat") // should remove "fat" from words list
t.removeWord("argue") // should remove "argue" from words list