<html>
<head>
<title>Chapter 3 Assignment 2</title>
<script type="text/javascript">
var first_name = prompt("What is your first name?","");
var last_name = prompt("What is your last name?","");
var hourly_wage = prompt("What is your hourly wage?","");
hourly_wage = parseFloat(hourly_wage)
var weekly_pay = hourly_wage*40;
var job_id;
var job_title;
</script>
</head>
<body bgcolor="lightblue">
<script type="text/javascript">
job_id = "B0123456";
job_title = "Programmer";
document.write(<h1><b>"First Name: "</b> + first_name);
document.write(<h1><b>"Last Name: "</b> + last_name);
document.write(<h1><b>"Job Title: "</b> + job_title);
document.write(<h1><b>"Job ID:< "/b> + job_id);
document.write(<h1><b>"Weekly Pay: $"</b> + weekly_pay);
</script>
<a href="http://www.tridenttech.edu/">Trident Technical College</a>
<h1><font color = "yellow">THE END</font></h1>
</body>
</html>
Just noticed this:
document.write(<h1><b>"Job ID:< "/b> + job_id);

New Topic/Question
Reply



MultiQuote




|