From ee677f174b6bd6e2961aa3fa47f920fad87ca1e6 Mon Sep 17 00:00:00 2001 From: mateuskuritza <77460452+mateuskuritza@users.noreply.github.com> Date: Tue, 23 Feb 2021 09:17:05 -0300 Subject: [PATCH] Update index_extra.js isPalindrome solution --- session1/index_extra.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/session1/index_extra.js b/session1/index_extra.js index 5c36e0f4..2f875f9a 100644 --- a/session1/index_extra.js +++ b/session1/index_extra.js @@ -60,6 +60,16 @@ function isPalindrome(str) { // } // } // return isPali + + + // CONTRIBUTED SOLUTION + // By Mateus Kuritza + // strReverse = str.split("").reverse().join(""); + // if(str === strReverse){ + // return true + // }else{ + // return false + // } // CONTRIBUTED SOLUTION // for (i=0; i