From 10363ad6145982b09704de1436f6f818ac1c6f64 Mon Sep 17 00:00:00 2001 From: Victor Souza Date: Mon, 31 Oct 2022 11:47:02 -0300 Subject: [PATCH] : feat(triangleArea): adicionando funcionalidade --- 01-greeting/index.js | 2 +- 02-triangleArea/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/01-greeting/index.js b/01-greeting/index.js index 5c0279c..f99d6be 100644 --- a/01-greeting/index.js +++ b/01-greeting/index.js @@ -1,4 +1,4 @@ export function greet(name) { - // implementar logica aqui + return `Hello ${name}`; } diff --git a/02-triangleArea/index.js b/02-triangleArea/index.js index 7628fcd..b930059 100644 --- a/02-triangleArea/index.js +++ b/02-triangleArea/index.js @@ -1,3 +1,3 @@ export function triangleArea(base, height) { - // your code here + return base * height / 2 } \ No newline at end of file