From 7983706a5a50f65f1ec9ff636335c99c55f4e544 Mon Sep 17 00:00:00 2001 From: guiprj Date: Sat, 29 Oct 2022 15:57:06 -0300 Subject: [PATCH] feat: resolucao triangleArea --- 02-triangleArea/index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/02-triangleArea/index.js b/02-triangleArea/index.js index 7628fcd..327911a 100644 --- a/02-triangleArea/index.js +++ b/02-triangleArea/index.js @@ -1,3 +1,7 @@ export function triangleArea(base, height) { // your code here -} \ No newline at end of file + const areaTriangle = (base * height) / 2 + return areaTriangle +} + +triangleArea(10, 15) \ No newline at end of file