From 20185bda882f62b7ea33453f930e493c409154da Mon Sep 17 00:00:00 2001 From: ueberjames Date: Fri, 28 Oct 2022 01:13:13 -0300 Subject: [PATCH] =?UTF-8?q?feat:=20implementa=C3=A7=C3=A3o=20de=20=20algor?= =?UTF-8?q?itmo=20que=20retorne=20a=20=C3=A1rea=20de=20um=20tri=C3=A2ngulo?= =?UTF-8?q?.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 02-triangleArea/index.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/02-triangleArea/index.js b/02-triangleArea/index.js index 7628fcd..af71771 100644 --- a/02-triangleArea/index.js +++ b/02-triangleArea/index.js @@ -1,3 +1,5 @@ -export function triangleArea(base, height) { +export function triangleArea(base, height) { // your code here -} \ No newline at end of file + let area = (base * height) / 2; + return area; +}