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

3 lines
75 B
JavaScript

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