-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjscriptnotes.html
More file actions
31 lines (31 loc) · 1.4 KB
/
jscriptnotes.html
File metadata and controls
31 lines (31 loc) · 1.4 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>JavaScript Notes</title>
<link rel="stylesheet" href="./assets/style.css">
</head>
<body>
<header id="top">
<h1>Prework Study Guide</h1>
<img src="./assets/bowtie-cat.png" alt="Profile image of cat wearing a bow tie." />
<h2>✨ Open the Console to See What's Happening ✨</h2>
</header>
<main>
<!-- Student code goes here -->
<section class="card" id="javascript-section">
<h2>JavaScript</h2>
<ul>
<li>A variable is a named container that allows us to store data in our code.</li>
<li>Control flow is the order in which a computer executes code in a script.</li>
<li>A JavaScript function is defined with the function keyword, followed by a name, followed by parentheses ().</li>
<li>The Math.floor() function returns the largest integer less than or equal to a given number</li>
<li>The JavaScript Math.random() method is a built-in method for producing random numbers.</li>
<li>The increment operator (++) increments (adds one to) its operand and returns the value before or after the increment, depending on where the operator is placed</li>
</ul>
</section>
</main>
</body>
</html>