forked from M3-Academy/challenge-algorithms-v2.0
add triangleArea logic
This commit is contained in:
parent
e9c7493ad2
commit
9c39a95a5f
@ -1,3 +1,4 @@
|
||||
export function triangleArea(base, height) {
|
||||
// your code here
|
||||
}
|
||||
export function triangleArea(base, height) {
|
||||
const result = (base * height) / 2;
|
||||
return result;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user