I am working on a JS assignment for school. Our instructions are to use user.Agent to detect the browser that the user is browsing with. The web page background color and text color must appear differently depending on the browser being used.
The instructions we were given were pretty vague. I am trying to format my code similar to the professor’s but something is not right.
Any help is appreciated.