-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfunctions.html
More file actions
47 lines (46 loc) · 1.73 KB
/
functions.html
File metadata and controls
47 lines (46 loc) · 1.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible", content="IE-edge">
<title>Functions | JSProject</title>
<link rel="stylesheet", href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css">
<link rel="stylesheet", href="css/style.css">
<style>
body {font-family: Arial;}
section {border: 2px dashed black; margin: 2rem;}
div {border: 2px solid black; width: 60%; margin: 2rem auto; padding: 2rem; text-align: center;}
h1 {font-size: 40px;}
h2 {font-size: 25px; padding: 1rem;}
p {font-size: 20px;}
button {padding: 0.5rem 2rem; margin: 1rem; border: 2px solid black; cursor: pointer;}
label {padding: 0.5rem; margin: 1rem;}
input {padding: 0.5rem; margin: 1rem; border: 2px solid black;}
</style>
</head>
<body>
<header>
</header>
<main>
<!-- main content -->
</main>
<footer>
</footer>
<!-- <script type="module", src="js/functions_1.js"></script>
<script type="module", src="js/functions_2.js"></script>
<script type="module", src="js/functions_3.js"></script> -->
<script>
function greetUser(name, functionName)
{
const greetMessage = `Hello, ${name}!`;
functionName(greetMessage);
}
function displayGreeting(message)
{
console.log(message);
}
greetUser("John Doe", displayGreeting);
</script>
</body>
</html>