Made palindrome checker

This commit is contained in:
2024-09-01 20:55:05 -05:00
commit 4b040d1f0a
2 changed files with 23 additions and 0 deletions

9
b.js Normal file
View File

@@ -0,0 +1,9 @@
const input = document.getElementById("input")
function check(){
const value = input.value
if (value === value.split('').reverse().join('')){
alert(`${value}`)
}
else { alert(`🛑 ${value} 🛑`)}
}