1var sumOfLeftLeaves = function (root) {2let total = 0;34const go = (node, isLeft) => {5if (isLeft && !node.left && !node.right) {6total += node.val;7return;8}9if (node.left) go(node.left, true);10if (node.right) go(node.right, false);11};1213go(root, false);1415return total;16};