-
Notifications
You must be signed in to change notification settings - Fork 1
/
arrays.html
23 lines (22 loc) · 1.14 KB
/
arrays.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="styles.css">
<title>JS Tutorial - Educational Websites</title>
</head>
<body>
<section>
<h1 id="intro">J<span>ava</span>S<span>crip</span>t Tu<span>tori</span>al</h1><br><br><br>
<!-- Lesson 2 -->
<h2 id="lesson-text">Lesson 4 - Arrays</h2><br><br><br>
<h3 id="lesson-text2">Arrays are like the big brothers of variables. Variables can only store 1 piece of info, but arrays can store a lot of info. They are made by <code lang="js">name = ["info1", "info2", "info3", and so on].</code>It is very helpfuland time-saving compared to variables.<br><br>TO get info from an array, we write <code lang="js">arrayname[0]</code>. The first info in an array is called by a 0, the next is a 1, then a 2, and so on.
<br>
<br>
<br>
<a href="./variables.html" class="green-btn">< Previous</a><span style="color:transparent;">-------------------------</span>
<a href="./functions.html" class="green-btn">Next ></a>
</h3>
</section>
</body>
</html>