Build a movie ticket booking calculator step 18

Tell us what’s happening:

I have been getting the same message “You should declare a variable named service_charges inside your last if statement body.” I have changed different parts of my code, searched on Google, and looked on the forum but have not been able to figure it out.

Your code so far


Welcome to the forum @Jacely3

If you have a question about a specific challenge as it relates to your written code for that challenge and need some help, click the Help button located on the challenge.

The Help button will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.

Try indenting line 38.

Happy coding