Question: I'm needing help figuring out what I did wrong in my JavaScript and HTML files. I added the instructions for my assignment below to better
I'm needing help figuring out what I did wrong in my JavaScript and HTML files. I added the instructions for my assignment below to better understand what I'm trying to accomplish. 
Write a JavaScript program that performs the following tasks:
Write a for loop that counts from 0 to 10. Each time through the loop, check if the current number is odd or even and display a message to the webpage.
For example:
Count 0 is even
Count 1 is odd
Count 2 is even
Ask the user for a number between 5 and 20, and store their input in the variable myNum. Use the myNum variable in a Do While loop to display the loop counter until it equals the value of myNum. The loop counter should start at 1. The loop stops when the counter equals the variable myNum.
Store the following subjects in an array:
Accounting
Algebra
Programming
Art
Data Analytics
Display the array values in a readable format using foreach()
Display the array values separated by commas using one statement. Note: See lesson content for help if needed.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
