From 1b9c0dbafe26e5f7d3cef63e067c84b42bb086a5 Mon Sep 17 00:00:00 2001 From: Humberto Ferro Date: Sat, 29 Oct 2022 07:20:27 -0300 Subject: [PATCH] =?UTF-8?q?feat:=20criar=20algoritmo=20que=20realize=20o?= =?UTF-8?q?=20c=C3=A1lculo=20da=20=C3=A1rea=20do=20triangulo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 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..475c5ab 100644 --- a/02-triangleArea/index.js +++ b/02-triangleArea/index.js @@ -1,3 +1,4 @@ export function triangleArea(base, height) { - // your code here + var area = (base*height) / 2 + return area } \ No newline at end of file