Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,24 @@ Use the code above to test and print the results.
let val = 5;
let str3 = "5";
let str4 = "five";
<<<<<<< HEAD
let isPresent = false;
=======
let isAwake = false;
>>>>>>> 016679ba03b8bb678017e4a0e74bc8eab8bd301f
```

- What is the value of: val == str3?
- What is the value of: val === str3?
<<<<<<< HEAD
- What is the value of: !isPresent?
- What is the value of: (“eleven” == str4 && val >= str3)?
- What is the value of: (!isPresent || isPresent)?
=======
- What is the value of: !isAwake?
- What is the value of: ("eleven" == str4 && val >= str3)?
- What is the value of: (!isAwake || isAwake)?
>>>>>>> 016679ba03b8bb678017e4a0e74bc8eab8bd301f
- What is the value of: 0 == false?
- What is the value of: 0 === false?
- What is the value of: 0 != false?
Expand Down
46 changes: 46 additions & 0 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,58 @@ console.log("EXERCISE 1:\n==========\n");

// YOUR CODE HERE

var a;
var b;
a=20;
b=4;
var add = a+b;
var minus= a-b;
var multipy=a*b;
var dividing=a/b;
console.log(add);
console.log(minus);
console.log(multipy);
console.log(dividing);



// Exercise 2
console.log("EXERCISE 2:\n==========\n");



// YOUR CODE HERE
let num =11;
let str ="11";
let str2 ="eleven";
let isPresent =true;
let firstName = "Fardo";
let lastName = "Baggins";
console.log( "What is the value of: num + str?",num+str);
console.log(" What is the value of: num + str2?" ,num+str2);
console.log( "What is the value of: num + isPresent? " ,num+isPresent);
console.log("What is the value of: firstName + num? " , firstName+num);
console.log(" What is the value of: isPresent + str?" , isPresent+str);
console.log( " What is the value of: firstName + lastName?" ,firstName+lastName);




// Exercise 3
console.log("EXERCISE 3:\n==========\n");

// YOUR CODE HERE

let val = 5;
let str3 = "5";
let str4 = "five";
let isPresent2 = false;
// console.log("What is the value of: val == str3 ? ", val == str3);
// console.log(" What is the value of: !isPresent2 ?", !isPresent2 );
// console.log("What is the value of: (“str2” == str4 && val >= str3)?", “str2” == str4 && val >= str3);
// console.log("What is the value of: (!isPresent2 || isPresent)? ", !isPresent2 || isPresent );
// console.log(" What is the value of: 0 == false?", 0 == false );
// console.log("What is the value of: 0 === false? ", 0 === false );
// console.log(" What is the value of: 0 != false?", != false);
// console.log("What is the value of 0 !== false? ", !== false);
// console.log("What is the value of: val === str3? ", val === str3 );