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

6 lines
116 B
JavaScript
Raw Normal View History

2022-10-30 02:44:30 +00:00
export function triangleArea(base, height) {
// your code here
2022-10-30 02:44:30 +00:00
let area = (base * height) / 2;
return area;
}