From 6b149f7d16f92c58b0a519af4bbd97434525b7e5 Mon Sep 17 00:00:00 2001 From: MarcelloMartins Date: Sat, 29 Oct 2022 16:20:16 -0300 Subject: [PATCH] feat(02-trianglearea):completead second challenge --- 02-triangleArea/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/02-triangleArea/index.js b/02-triangleArea/index.js index 7628fcd..c46256f 100644 --- a/02-triangleArea/index.js +++ b/02-triangleArea/index.js @@ -1,3 +1,5 @@ export function triangleArea(base, height) { // your code here + let result = base * height / 2; + return result; } \ No newline at end of file