The question goes like this:
The following code contains errors, find and correct the errors.
The following code contains errors, find and correct the errors.
Code:
<html>
<head>
<title>Project2-3</title>
</head>
<body>
<SCRIPT LANGUAGE="JavaScript">
<!--HIDE FROM OLD BROWSERS
var areaCode, exchange, number, phoneNumber;
phoneNumber = areaCode + "-";
phoneNumber = phoneNumber + exchange + "-";
phoneNumber = phoneNumber + number;
document.write("<p>The phone number is " + phoneNumber + "</p>");
//STOP HIDING FROM OLD BROWSERS -->
</script>
</body>
</html>
Comment