diff --git a/README.md b/README.md index b32d05f..eec4fc9 100644 --- a/README.md +++ b/README.md @@ -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? diff --git a/app.js b/app.js index 933072e..bf2da93 100644 --- a/app.js +++ b/app.js @@ -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 );