Created
December 19, 2020 05:22
-
-
Save cabraljv/f0247f44f9c0f8c972d02d76f8b88966 to your computer and use it in GitHub Desktop.
DeepESG Seletiva
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const texto = 'ana'; | |
| const inversa = texto.split('').reverse().join(''); | |
| if(texto===inversa){ | |
| console.log('PALÍNDROMO'); | |
| }else{ | |
| console.log('NÃO É UM PALÍNDROMO'); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment