From e34c4c6cb36ca9a8d57146cc6583bdebd1aab2fe Mon Sep 17 00:00:00 2001 From: Nicolas Oliveira <110689312+thedevnicolas@users.noreply.github.com> Date: Fri, 28 Oct 2022 09:52:27 -0300 Subject: [PATCH] feat(desafio02):desafio-completo --- 02-triangleArea/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/02-triangleArea/index.js b/02-triangleArea/index.js index 7628fcd..319154f 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 + let area = base * height / 2 + return area } \ No newline at end of file -- 2.34.1