I am using a tutorial that had me create an html form with an external javascript. When I click on a radio button, I'm supposed to get an alert with the value of the answer. Instead I get 'undefined' no matter which answer I click.
I put this on JSBin. https://jsbin.com/docavo/edit?html,js,output
In one attempt to solve I just grabbed the project files provided by the tutor and put that code into the JSBin fields, and got the same result.
So the code (and tutorial ) are wrong, but it works in the tutorial. What to do?