add triangleArea logic

This commit is contained in:
Marcela Mathias 2022-11-02 16:08:19 -03:00
parent e9c7493ad2
commit 9c39a95a5f

View File

@ -1,3 +1,4 @@
export function triangleArea(base, height) {
// your code here
}
export function triangleArea(base, height) {
const result = (base * height) / 2;
return result;
}