Hi,
I'm struggling to do a simple job with JavaScript. I've looked online for answers but with no luck. I have managed to create an input with a button that assigns whatever the user enters to a variable called "Answer". I now need a couple of lines that will compare this to a predetermined answer and, if they match, unhide a label called "Output".
So far, I think this should work (assuming the correct answer is James Bond)
if (localStorage.getItem('Answer') == 'James Bond')
How is the unhiding of the Output label then done?
Thanks for any help you can give me!
Matt