Skip to content
Advertisement

Variable value not being passed into another class

I’m trying to let the user to choose which option is in their menu, and setting the variables based on the option that the customer choose, but when I go to another class and retrieve it, there is no value being passed.

Here is my alacarte class

JavaScript

Here is my checkout class

JavaScript

Here is my output

JavaScript

Advertisement

Answer

You have all the information here

JavaScript

so change receipt so that it has parameters

JavaScript

Change the implementation

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement