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

3 lines
76 B
JavaScript
Raw Normal View History

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