Ask coding questions

← Back to all posts
I need help with this code...
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
HadiAbo
albas99
Comments
hotnewtop
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.

AloegelhiPlaysR

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