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

3 lines
76 B
JavaScript

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