Part 1
- Open this file in your browser and Microsoft Visual Studio
- Add your name, section, and email
- After the line:
// PART 1: YOUR CODE STARTS AFTER THIS LINE:
- Type this code exactly as it appears into the coding area below the above comment.
var name;
name = prompt("Enter a name:");
document.write(name);
- Now run the application by refreshing the page.
Your Part 1 Output:
Part 2
- Open this file in Firefox and Microsoft Visual Studio
- After the line:
PART 2: YOUR CODE STARTS AFTER THIS LINE:
- Type this code exactly as it appears into the coding area below the above comment.
/*
Write a description of the application here.
*/
var name;
name = prompt("Enter a name:");
document.write("Hello, ");
document.write(name);
document.write(", welcome to the class!");
- Now run the application by refreshing the page.
Your Part 2 Output:
- Open this file in Firefox and Microsoft Visual Studio
- After the line:
PART 3: YOUR CODE STARTS AFTER THIS LINE:
- Type this code exactly as it appears into the coding area below the above comment.
/*
Write a description of the application here.
*/
var name;
var cityOfBirth;
name = prompt("Enter a name:");
cityOfBirth = prompt("Where were you born?");
document.write("Hello, ");
document.write(name);
document.write(" from ");
document.write(cityOfBirth);
document.write(", welcome to the class!");
- Now run the application by refreshing the page.
Your Part 3 Output: