export function triangleArea(base, height) { // your code here if (!base || !height) return 0; return (base * height) / 2; }