From 9c39a95a5fc2ff7f872707368b95d1229a14e27b Mon Sep 17 00:00:00 2001 From: Marcela Mathias Date: Wed, 2 Nov 2022 16:08:19 -0300 Subject: [PATCH] add triangleArea logic --- 02-triangleArea/index.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/02-triangleArea/index.js b/02-triangleArea/index.js index 7628fcd..e550155 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 +export function triangleArea(base, height) { + const result = (base * height) / 2; + return result; +}