Tree TraversalDFS Pre OrderOn this pageDFS Pre OrderVisits the root first, then the left subtree, then the right subtree.Interactive VisualizationLoading visualization…Usagesrc/sample/preorder.tsimport { preOrder, Node } from 'athro';const root = new Node(3);const result = preOrder(root);