challenge-algorithms-v2.0-e.../02-triangleArea/index.js
2022-10-29 12:36:01 -03:00

3 lines
77 B
JavaScript

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