challenge-algorithms-v2.0-c.../02-triangleArea/index.js

4 lines
77 B
JavaScript
Raw Normal View History

2022-10-28 11:34:26 +00:00
export function triangleArea(base, height) {
return (base * height) / 2;
}