Question
1. Enter and debug this script. It has been tested and it works. The lines below are in an image, as such, you will have
1. Enter and debug this script. It has been tested and it works. The lines below are in an image, as such, you will have to manually type them and cannot cut and paste. What you submit is your HTML file, holding your solution, named HW01Q1.html, which contains your work. For grading purposes, I will execute your HTML and JavaScript; that is, I will open your HTML in the Chrome browser.
2. Enter Script and Fix Error (10 points) Enter and test this script; it has two errors in it. For this program, you may cut and paste the lines into your source editor. By the way, be very careful when cutting and pasting source code, the double quote character () is often mangled. Note this code uses the single quote (), which is usual less of an issue. Hints: (1) Turn on your browsers console to see the error messages, and (2) there are two errors. Try looking for spelling errors and missing characters.
var a = 'Hello ';
var b = 'JS World!'
alirt (a + b);
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started