Skip to content
← Back to Community
I need help with this code...
Profile icon
h
has Hacker Plan
albas99

As you'll see in the javascript code, I'm trying to display a message when a user chooses pickup and the address of the pickup but it's not working and keeps giving me an error message, I've tried debugging it in chrome but I'm new to debugging and have no idea how to go about it. Someone come to my rescue.

Answered by Baconman321 [earned 5 cycles]
View Answer
Voters
Profile icon
HadiAbo
Profile icon
albas99
Comments
hotnewtop
Profile icon
Baconman321

You have to define checkout in checkValues(). It is defined in selectType, meaning that it only exists inside that function. You need to learn about scope. Read this to learn more.

Profile icon
AloegelhiPlaysR

Instead of let checkout do: const checkout = form.checkout;