I had serious issues and could not figure out what I was doing wrong, so I started over.
Re-entered my variables. Trying to see where I went wrong. The code is properly coded, and commented.
Commit updates
Made sure everything was working and that the damage was being deducted from each player, console.log()
I went back over the work and found all errors. All work is completed properly. They are also commented out properly.
I have set up the folder and called it goal2_assign_duel2. I copied all files and transfered them to the proper folders.
I updated some of the strings on the alerts so that spaces were in the proper places, at the point where it says player1Name + " Win's", and I also updated the spaces where it says " *ROUND "+round+" * ", to display proper spaces in the alert boxes and console.
I was able to see what I was doing wrong with this assignment. I changed the variables that describe the player to an array. I used one line of code to check to see if I was doing it correctly, so I would not have to go through the whole file to change mistakes. This checked out great and it seems that everything is working fine. I do not have any errors. I will work changing the other lines over.
I am still replacing the code and commenting out the sections so I can trace it if I have to go back over it later. I have been double checking it throught the websites and I see no, errors.
I have updated the file will check again for errors.
Getting a error in the dialogue box. I need to do some trouble shooting to see why this is ending up this way. Chances are I forgot to convert something.
In this commit I have found my error. In the section where I am adding on to my health, I used the wrong index for player health. I used [3] instead of [2].