feat(challenge-2): completed challenge

This commit is contained in:
Henrique Santos Santana 2022-10-27 20:41:22 -03:00
parent 0b821b9754
commit 529b692747

View File

@ -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;
}