Is there a way to reset the entire project on my account? I cannot get my code to pass.
I’ve tried erasing my entire JavaScript code, saving the blank page using the Save your Code button, logging out of the website, restarting my computer, clearing my cookies, logging back on to the website and rewriting my code.
At this point, I have only written one line and checked my code. It is passing three tests, even though I haven’t written that code yet.
Passed: You should have an input element with an id of text-input.
Passed: You should have a button element with an id of check-btn.
Passed: You should have a div element with an id of result.
These tests are passing. No code in JavaScript yet.
Your code so far
<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Build a Palindrome Checker</title>
<link rel="stylesheet" href="./styles.css" />
</head>
<body>
<main class="container">
<h1>Palindrome Checker</h1>
<div class="palindrome-div">
<label for="text-input">Type palindrome here:</label>
<input
class="palindrome-input"
id="text-input"
value=""
type="text"
/>
<button class="palindrome-btn" id="check-btn">Check</button>
<div class ="palindrome-result" id="result"></div>
</div>
<div class="palindrome-definition-div">
<p class="palindrome-definition">A palindrome is a word or sentence that's spelled the same way forward and backward, without punctuation and ignoring the case and spacing.</p>
</div>
</main>
<script src="./script.js"></script>
</body>
</html>
which original question? you asked about why those tests are passing when you haven’t written any JavaScript, and those tests are not about the JavaScript