Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ReferenceError: prompt is not defined #148

Open
dotfortun opened this issue Apr 17, 2024 · 0 comments
Open

ReferenceError: prompt is not defined #148

dotfortun opened this issue Apr 17, 2024 · 0 comments

Comments

@dotfortun
Copy link

dotfortun commented Apr 17, 2024

Exercises 12 and 13 always fail because prompt is not defined.

The error is:

ReferenceError: prompt is not defined

    > 1 | let guests = prompt('How many people are coming to your wedding?');
        |                                                                    ^
      2 |
      3 | function getPrice(guests){
      4 |     let cost = 0;

      at exercises/12-How_much_the_wedding_costs/app.js:1:1039
      at Object.<anonymous> (exercises/12-How_much_the_wedding_costs/app.js:110:4)
      at Object.load (../../home/node/.local/share/@learnpack/learnpack/node_modules/rewire/lib/moduleEnv.js:55:18)
      at internalRewire (../../home/node/.local/share/@learnpack/learnpack/node_modules/rewire/lib/rewire.js:49:15)
      at rewire (../../home/node/.local/share/@learnpack/learnpack/node_modules/rewire/lib/index.js:11:12)
      at Object.rewire (exercises/12-How_much_the_wedding_costs/tests.js:12:17)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant