constructor() {
        this.children = {};
        this.isWord = false;
    }
Your Trie object will be instantiated and called as such:
var obj = new Trie()
obj.insert(word)
var param_2 = obj.search(word)
var param_3 = obj.startsWith(prefix)