From 131d0960576bc3ac87d940724ea585008681def8 Mon Sep 17 00:00:00 2001 From: Douglas Nobrega Date: Thu, 27 Oct 2022 17:10:00 -0300 Subject: [PATCH] desafio 02 concluido --- 02-triangleArea/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/02-triangleArea/index.js b/02-triangleArea/index.js index 7628fcd..af20ab4 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