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

3 lines
76 B
JavaScript
Raw Normal View History

2022-11-02 17:50:03 +00:00
export function triangleArea(base, height) {
return base * height / 2
}