From b9f537a561b449b2fc74146bd6f39555cef08408 Mon Sep 17 00:00:00 2001 From: Nathalia Sardou Date: Sat, 29 Oct 2022 23:44:30 -0300 Subject: [PATCH] triangleArea atualizado --- 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; +}