Skip to content

Commit 7b54039

Browse files
authored
UPDATE: revised exercise
1 parent a2daa03 commit 7b54039

1 file changed

Lines changed: 14 additions & 15 deletions

File tree

README.md

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Steps
44

5-
1. Fork this repository to start a new project in your repos folder == git clone <JavaScript_Operators>
5+
1. Fork this repository to start a new project in your repos folder => `git clone <JavaScript_Operators>`
66
2. cd JavaScript_Operators to navigate into your new repo directory
77
3. Type the command code . to open VSC with the JavaScript_Operators folder
88
4. Open the app.js file
@@ -22,19 +22,20 @@ You can print the value of the variables to the browser console (ex: `console.lo
2222
1. Use the following code to answer the questions below:
2323

2424
```
25-
let a = 11;
25+
let num = 11;
2626
let str = "11";
2727
let str2 = "eleven";
2828
let isPresent = true;
29-
let firstName = "Jackie";
30-
let lastName = "Chan";
29+
let firstName = "Frodo";
30+
let lastName = "Baggins";
3131
```
3232

33-
- What is the value of: a + str?
34-
- What is the value of: a + str2?
35-
- What is the value of: a + isPresent?
36-
- What is the value of: a + firstName?
37-
- What is the value of: a + lastName?
33+
- What is the value of: num + str?
34+
- What is the value of: num + str2?
35+
- What is the value of: num + isPresent?
36+
- What is the value of: firstName + num?
37+
- What is the value of: isPresent + str?
38+
- What is the value of: firstName + lastName?
3839

3940
Use the code above to test and print the results.
4041

@@ -43,18 +44,16 @@ Use the code above to test and print the results.
4344
1. Use the following code to answer the questions below:
4445

4546
```
46-
let a = 5;
47+
let val = 5;
4748
let str = "5";
4849
let str2 = "five";
4950
let isPresent = false;
50-
let firstName = "Robin";
51-
let lastName = "Williams";
5251
```
5352

54-
- What is the value of: a == str?
55-
- What is the value of: a === str?
53+
- What is the value of: val == str?
54+
- What is the value of: val === str?
5655
- What is the value of: !isPresent?
57-
- What is the value of: (“eleven” == str2 && a >= str)?
56+
- What is the value of: (“eleven” == str2 && val >= str)?
5857
- What is the value of: (!isPresent || isPresent)?
5958
- What is the value of: 0 == false?
6059
- What is the value of: 0 === false?

0 commit comments

Comments
 (0)