// Do not edit the class below except// for the breadthFirstSearch method.// Feel free to add new properties// and methods to the class.classNode {constructor(name) {this.name = name;this.children = []; }addChild(name) {this.children.push(newNode(name));returnthis; }breadthFirstSearch(arr) {constq= [this];while (q.length>0) {constnode=q.shift();for (constchildofnode.children) {q.push(child); }arr.push(node.name);node.visited =true; }return arr; }}// Do not edit the line below.exports.Node = Node;