Skip to content
Permalink
a9995c6f04
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
28 lines (26 sloc) 697 Bytes
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Window.prompt() practice</title>
<style>
body{
margin: 3%;
}
h1, span{
color: rgb(104, 33, 170);
}
</style>
</head>
<body>
<h1><code> Week 3 Assignment</code></h1>
<h2>
<code>Head over to the console for a surprise message! </code> <span>&#10230;</span>
</h2>
<script>
let person = window.prompt("Please enter your name");
console.log( "Greetings, " + person.toUpperCase() + "." + "\nWelcome to my website!");
</script>
</body>
</html>