commit 4b040d1f0a8c8940f3728474b3958cd64f7a1723 Author: Jonathan Branan Date: Sun Sep 1 20:55:05 2024 -0500 Made palindrome checker diff --git a/b.html b/b.html new file mode 100644 index 0000000..dd514c0 --- /dev/null +++ b/b.html @@ -0,0 +1,14 @@ + + + + + + Palindrome Checker + + +

Palindrome Checker

+ + + + + \ No newline at end of file diff --git a/b.js b/b.js new file mode 100644 index 0000000..0259e45 --- /dev/null +++ b/b.js @@ -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} 🛑`)} +} \ No newline at end of file