From c10bee305d2598bbf2ae2814887428caea3e9ee2 Mon Sep 17 00:00:00 2001 From: Sabrina Miranda Date: Fri, 28 Oct 2022 14:12:36 -0300 Subject: [PATCH] feat: Implementa Desafio 2.2 --- 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..a1251e8 100644 --- a/02-triangleArea/index.js +++ b/02-triangleArea/index.js @@ -1,3 +1,4 @@ export function triangleArea(base, height) { - // your code here + let area = (base*height)/2; + return area; } \ No newline at end of file