Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
week 3 done
  • Loading branch information
hol23003 committed Feb 1, 2024
1 parent 5071a04 commit d4d6d42
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
19 changes: 19 additions & 0 deletions week-03/app.js
@@ -0,0 +1,19 @@
alert("Hello Friend!")

let name = prompt("What is your name?")
name = String(name)

let upperCaseName = name.toUpperCase();

alert(`Hello, ${upperCaseName}!`);

console.log(`Welcome to my Webpage, ${upperCaseName}!`);

let age = prompt("What is your age?")
age = Number(age)

console.log(`${upperCaseName}'s age is ${age}.`)

let isAdult = true;
isAdult = Boolean(isAdult);

12 changes: 12 additions & 0 deletions week-03/index.html
@@ -0,0 +1,12 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>

<script src="app.js"></script>
</body>
</html>

0 comments on commit d4d6d42

Please sign in to comment.