diff --git a/index.js b/index.js index ebc33555a..487042829 100644 --- a/index.js +++ b/index.js @@ -1,7 +1,7 @@ // Iteration 1: Names and Input let hacker1 = 'Delio'; //driver let hacker2 = 'Erick'; //navigator - +// this us test console.log(`The driver's name is ${hacker1}`); console.log(`The navigator's name is ${hacker2}`); @@ -39,10 +39,4 @@ for ( let i = 0; i < prgSplit.length; i++) { } console.log(count); -// Palindromes -let str = prompt('Please enter your text'); -let regx = /[\W_]/g -let regStr = str.toLowerCase().replace(regx, ''); -let revStr = [...regStr].reverse().join('') -if ( regStr === revStr ) console.log(`${str} is a palindrome`) -else console.log(`Sorry, ${str} is not a palindrome`) \ No newline at end of file +// Delio's Practice Submit \ No newline at end of file