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

5 lines
119 B
JavaScript
Raw Permalink Normal View History

export function triangleArea(base, height) {
// your code here
const area = (base * height) / 2;
return area;
}