Skip to content

Retorna true se a string é um palindromo e false se não for.

Notifications You must be signed in to change notification settings

mffdeo/Palindrome-Checker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Palindrome-Checker

Retorna true se a string é um palindromo e false se não for.

A palindrome is a word or sentence that's spelled the same way both forward and backward, ignoring punctuation, case, and spacing.

Note: You'll need to remove all non-alphanumeric characters (punctuation, spaces and symbols) and turn everything into the same case (lower or upper case) in order to check for palindromes.

We'll pass strings with varying formats, such as racecar, RaceCar, and race CAR among others.

We'll also pass strings with special symbols, such as 2A33a2, 2A3 3a2, and 2_A33#A2.

Veja essa função funcionando aqui : https://codepen.io/Marcos-Oliveira-the-solid/pen/zYMgjaQ

OBS: use o console para executar a função, por exemplo: palindrome("eye") como na imagem abaixo:

About

Retorna true se a string é um palindromo e false se não for.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published