static createNode(type, left, right) {
        const node = new ASTNode();
        node.type = type;
        node.left = left;
        node.right = right;

        return node;
    }
The Abstract Syntax Tree node

Each node carries the node information such as type (operator type), value (if it's a leaf), and the left and right branches