forked from truecodersio/JavaScript_Operators
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.js
More file actions
41 lines (35 loc) · 847 Bytes
/
app.js
File metadata and controls
41 lines (35 loc) · 847 Bytes
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
console.log("Hello World!\n==========\n");
console.log(
"Follow the steps in the README.md file to complete the exercises:\n==========\n"
);
// Exercise 1
console.log("EXERCISE 1:\n==========\n");
// YOUR CODE HERE
var a = 20;
var b = 4;
var add = a + b;
var minus = a - b;
var multiply = a * b;
var dividing = a / b;
// Exercise 2
console.log("EXERCISE 2:\n==========\n");
let num = 11;
let str = "11";
let str2 = "eleven";
let isPresent = true;
let firstName = "Frodo";
let lastName = "Baggins";
// YOUR CODE HERE
var adding = num + str;
var numstr = num + str2;
var numpr = num + isPresent;
var namenum = firstName + num;
var presstr = isPresent + str;
var firstlast = firstName + lastName;
// Exercise 3
console.log("EXERCISE 3:\n==========\n");
let val = 5;
let str3 = "5";
let str4 = "five";
let isAwake = false;
// YOUR CODE HERE