Ask your AI Ask your AI to turn this code into a guided bug-finding exercise.
Claude ChatGPT I am reading "Which implementation preserves native navigation if JavaScript does not run?" on CodeWiki (https://codewiki.com/practice/mcq/frontend/getting-started/choose-navigation-element/).
Context (verbatim from the page):
"""
Which implementation preserves native navigation if JavaScript does not run?
<a href="/account">Account</a>
<button onclick="location.href=/account">Account</button>
<div role="link">Account</div>
<span data-route="/account">Account</span>
"""
Introduce three subtle bugs into the example above and let me find them. Reveal each answer only after I have guessed.
Answer in English. Keep code examples in Frontend. Where you are unsure, say so.