From ea443dcea3610be7f1c576032231c108e4c3b5b3 Mon Sep 17 00:00:00 2001 From: Gabriel Lehmann Date: Sat, 29 Oct 2022 22:34:34 -0300 Subject: [PATCH] feat(trianglearea): made second challenge --- 02-triangleArea/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/02-triangleArea/index.js b/02-triangleArea/index.js index 7628fcd..60b1284 100644 --- a/02-triangleArea/index.js +++ b/02-triangleArea/index.js @@ -1,3 +1,4 @@ export function triangleArea(base, height) { // your code here -} \ No newline at end of file + return base * height / 2; +} \ No newline at end of file