constructor() {
        this.root = new TrieNode();
    }
Your WordDictionary object will be instantiated and called as such:
var obj = new WordDictionary()
obj.addWord(word)
var param_2 = obj.search(word)