Need help with battle game project

I need help making a game on here similar to the style of Pokemon battles using javascript. The only problem is that most of the information I learned in college was for randomized generators and I can’t figure out how to fix the programming problems I have.

I need help fixing the buttons so that they work and give the opponent a turn. The button “16mm Reel Smackdown” causes the opponent to lose health, “Around the World in 80 Seconds Counter Attack” causes their attack to go right back to them and “Go Fetch the Stick” leaves them confused for a few turns. I need help figuring this out. I hope someone on here has done something like this before…

how is your battle program designed? how do these various buttons/moves fit into that design?

So far, this is what it looks like. You can press the buttons and, depending on the attack and the outcome, it should cause the opponent’s health to decrease. The only problem is that I can’t seem to make the image of the opponent, the numbers of the health or the messages meant to be displayed for each button and outcome appear.

maybe there’s an error happening? do you know how to use the browser’s dev console to check for errors?

I just did. None of the codes I have seem to be actual commands. I’m actually a beginner at this js thing, so I actually have no idea what I’m doing, honestly. I can’t seem to have anything appear on screen.

if you’re learning JS, do you have any other code, e.g. from the instructional material, that does work for making things appear on screen?

I didn’t use a manual. My teacher taught me everything I (hardly) know. I’m starting to worry that I’ve been over ambitious with this project.

broadly, how did your teacher teach you to put things on screen with javascript? vanilla JS DOM? or maybe with a framework like react?

…I don’t even know what you’re saying… :smiling_face_with_tear: