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

5 lines
97 B
JavaScript
Raw Permalink Normal View History

2022-10-30 13:27:00 +00:00
export function triangleArea(base, height) {
return (base * height) / 2;
// your code here
2022-10-30 13:27:00 +00:00
}