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

5 lines
111 B
JavaScript
Raw Permalink Normal View History

export function triangleArea(base, height) {
2022-10-28 20:50:34 +00:00
let result;
result = (base * height) / 2;
2022-10-28 21:31:47 +00:00
return result;
}