From 79e31fb5d002fc3257e0938e467216178d7008c5 Mon Sep 17 00:00:00 2001 From: Vinicius Date: Wed, 2 Nov 2022 20:35:18 -0200 Subject: [PATCH] fix(isPrime): corrige nome do parametro --- 05-isPrime/index.js | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/05-isPrime/index.js b/05-isPrime/index.js index 5d8e1f4..b24fc68 100644 --- a/05-isPrime/index.js +++ b/05-isPrime/index.js @@ -2,22 +2,22 @@ export function isPrime(value) { // implementar logica aqui let primo; if ( - number == 2 || - number == 3 || - number == 5 || - number == 7 || - number == 11 || - number == 13 + value == 2 || + value == 3 || + value == 5 || + value == 7 || + value == 11 || + value == 13 ) { primo = true; } else { primo = - number % 2 != 0 && - number % 3 != 0 && - number % 5 != 0 && - number % 7 != 0 && - number % 11 != 0 && - number % 13 != 0 + value % 2 != 0 && + value % 3 != 0 && + value % 5 != 0 && + value % 7 != 0 && + value % 11 != 0 && + value % 13 != 0 ? "true" : "false"; }