From e944764869790e59f84c85cf41e8db0c2a1245c4 Mon Sep 17 00:00:00 2001 From: Efrain Hernandez Date: Wed, 19 Aug 2020 22:08:00 -0500 Subject: [PATCH 1/3] =?UTF-8?q?Soluci=C3=B3n=20al=20reto=201=20JavaScript?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/index.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/index.js b/src/index.js index 858a8e8..719ae16 100644 --- a/src/index.js +++ b/src/index.js @@ -1,5 +1,3 @@ -const triangleArea = (base, height) => { +const triangleArea = (base, height) => (base * height) / 2; -}; - -module.exports = triangleArea; \ No newline at end of file +module.exports = triangleArea(); \ No newline at end of file From 3e025e41a8610777ad6352671fef05afa1f66664 Mon Sep 17 00:00:00 2001 From: Efrain Hernandez Date: Wed, 19 Aug 2020 22:09:48 -0500 Subject: [PATCH 2/3] =?UTF-8?q?Soluci=C3=B3n=20al=20reto=201=20de=20JS=20P?= =?UTF-8?q?latzi=20Master?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c464c61..9467165 100644 --- a/README.md +++ b/README.md @@ -23,4 +23,4 @@ Debes hacer un "Fork" de este proyecto, revolver los problemas y crear un Pull R Si alguien quiere agregar o mejorar algo, lo invito a colaborar directamente en este repositorio: [challenge-javascript-01](https://github.com/platzimaster/challenge-javascript-01/) ### Licencia -challenge-javascript-01 se lanza bajo la licencia [MIT](https://opensource.org/licenses/MIT). +challenge-javascript-01 se lanza bajo la licencia [MIT](https://opensource.org/licenses/MIT). \ No newline at end of file From f6572e2454f7e889faf962f9dbcd6eedc4a7ee9c Mon Sep 17 00:00:00 2001 From: Efrain Hernandez Date: Wed, 19 Aug 2020 22:22:20 -0500 Subject: [PATCH 3/3] =?UTF-8?q?Soluci=C3=B3n=20final=20al=20reto?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 719ae16..1945b93 100644 --- a/src/index.js +++ b/src/index.js @@ -1,3 +1,3 @@ const triangleArea = (base, height) => (base * height) / 2; -module.exports = triangleArea(); \ No newline at end of file +module.exports = triangleArea; \ No newline at end of file