forked from itscodenation/flw2-u1l2-23-24-student-exercises
-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.js
30 lines (19 loc) · 909 Bytes
/
variables.js
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
//tile divs
let tile1 = document.querySelector(".tile1");
let tile2 = document.querySelector(".tile2");
let tile3 = document.querySelector(".tile3");
let tile4 = document.querySelector(".tile4");
// 1. Declare a variable called fullName and assign a string with your name or a favorite celebrity.
// 2. Declare a variable called favNum and assign your favorite number as the value.
// 3. Declare a variable called coolImg and assign a string of an image address. Pick an image you enjoy!
// 4. Declare a variable called secondFavNum and assign a number as the value.
// 5. Declare a variable called sumOfNums and assign a value of favNum added with secondFavNum.
// 6. Once 1-5 are complete, uncomment the code below.
/*
tile1.innerHTML = fullName;
tile2.innerHTML = favNum;
let image = document.createElement("img");
image.src = coolImg;
tile3.appendChild(image);
tile4.innerHTML = sumOfNums;
*/