From ae920dca296d76e53cdf90d3ba103f1412230ea1 Mon Sep 17 00:00:00 2001 From: devartes Date: Fri, 28 Oct 2022 07:54:38 -0300 Subject: [PATCH] =?UTF-8?q?feat:=20adicionando=20solu=C3=A7=C3=A3o=20do=20?= =?UTF-8?q?2=C2=B0=20desafio?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 02-triangleArea/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/02-triangleArea/index.js b/02-triangleArea/index.js index 7628fcd..5346213 100644 --- a/02-triangleArea/index.js +++ b/02-triangleArea/index.js @@ -1,3 +1,5 @@ export function triangleArea(base, height) { // your code here + let area = (base * height)/2; + return area; } \ No newline at end of file