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

3 lines
80 B
JavaScript
Raw Normal View History

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