Need Help Debugging My Code for a School Project

0
0
Asked By SunnySkies42 On

Hey everyone! I'm a high school student working on my final project, and I'm running into some issues with my code. I can't seem to get the results for the total cost and preferred lodging to display properly in the designated section. I've been trying different things to fix it, but nothing's working. Any guidance would be much appreciated! Here's a snippet of my code: [code included] Thanks in advance!

4 Answers

Answered By TechieTina17 On

I totally second that suggestion! Sharing a link to your code would help a lot. From what I see, it seems like you're missing the part where the IDs for the total cost and lodging are referenced in your JavaScript. How have you structured your files? Knowing that could also help!

Answered By CuriousCoder13 On

Asking GPT is a good idea, but if you tried that already and it didn't help, maybe we can dive into the code specifics together. I see some issues in your JavaScript that might be causing the problems, like how you're handling IDs. Can you clarify how you're dividing your files?

Answered By DevDude99 On

Maybe try creating a Fiddle with your code, and I can take a look at it there. It'll make it easier to debug. Let me know when you have it set up!

Answered By CodingWizard83 On

It looks like your code formatting is a bit off. Make sure to use proper formatting, or share a link to something like CodePen or GitHub so we can see it better. Also, can you let us know what you've tried so far? That'll help us understand the problem better!

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.