Hey guys!
Can someone please help me on this Palindrome Checker project! It’s my first time building such a project . I have done some research but I am still not figuring it out?
A hint from you will highly be appreciate!
Your code so far
<!-- file: index.html -->
<!DOCTYPE html>
<html lan ="eng">
<head>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="./styles.css"/>
</head>
<body>
<main>
<h1>Is it a Palindrome?</h1>
<div class ="palindrome-edit">
<label class="text-format">Enter your word to confirm whether it is Palindrome:</label>
<input id="text-input" typye="text" placeholder="Please input a value"></input>
<button id="check-btn" type="button" onclick="click">Check</button>
<p> Palindrome is a reserver that spelled numbers, strings, and words both back and forward. Palindrome words can be read from right to left and left to right. </p>
<div id="result"></div>
</div>
<script scr="./script.js"></script>
</main>
</body>
</html>
.reverse() replaces the original array. Use .toReversed() to create a new array to compare to. Use console.log() to verify what’s going on for your variables, was super helpful for me.
Hey Jeremy
Thanks for sharing your valuable time with me. Much appreciated!
I am stuck at writing the statements that will runs the above check on my code! I am currently reading another example and comparing it to mine but, I haven’t find a way to construct my statements!
I have ratified that error! The rest of the tests are still failing. I have tried other methods I researched, but the failing tests are still the same.
Yes, I removed the Onclick =“click” assignment from the ‘button’ Element. I also clarified the JavaScript link error between HTML and JavaScript from ‘scr’ to ‘src’ !
while is true I have been trying to get this tests right for the past three to four days now, I want to thank you and Jeremy for the relentless effort to help a brother through this journey. I know I am missing some simple steps in the eyes of Millions people, but for now, It’s something big for me to figure out. I am still trying other methods I have from youtube and read on freeCodeCamp page
I just paste that HTML here along with the JavaScript codes to show the clarification I did on the button Element. They are both in their respective workspace!