forked from M3-Academy/challenge-algorithms-v2.0
feat(02-trianglearea):completead second challenge
This commit is contained in:
parent
c6f6df9c59
commit
6b149f7d16
@ -1,3 +1,5 @@
|
||||
export function triangleArea(base, height) {
|
||||
// your code here
|
||||
let result = base * height / 2;
|
||||
return result;
|
||||
}
|
Loading…
Reference in New Issue
Block a user