challenge-algorithms-v2.0-c.../02-triangleArea/index.js
2022-10-28 07:34:26 -04:00

4 lines
77 B
JavaScript

export function triangleArea(base, height) {
return (base * height) / 2;
}