feat(challenge-2): completed challenge #2

Merged
HenriqueSantosSantana merged 1 commits from feature/challenge-2 into develop 2022-10-27 23:42:02 +00:00

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