forked from M3-Academy/challenge-algorithms-v2.0
Merge pull request 'feat(challenge-2): completed challenge' (#2) from feature/challenge-2 into develop
Reviewed-on: #2
This commit is contained in:
commit
157c511dd7
@ -1,3 +1,6 @@
|
||||
export function triangleArea(base, height) {
|
||||
export function triangleArea(base, height) {
|
||||
// your code here
|
||||
}
|
||||
if (!base || !height) return 0;
|
||||
|
||||
return (base * height) / 2;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user