Question: Javascript 1. [10 marks] Open a new text file and evaluate each of the following 10 expressions. Make sure to show ALL OF THE STEPS
Javascript
![Javascript 1. [10 marks] Open a new text file and evaluate each](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f30312693b4_06566f30311e64b7.jpg)

1. [10 marks] Open a new text file and evaluate each of the following 10 expressions. Make sure to show ALL OF THE STEPS you took to solve the expression. Evaluate a single operator for each step. See this week's lecture video for an example of doing this. Answers that do not show enough steps will receive a grade of 0. You don't need to do anything for the lines that begin with let. 1. "Dog" + 2 > 3 && true 2. true || false && true 3. let firstName = "trouble"; let lastName "double"; (firstName "Batman" || first Name (last Name === "Batman" || last Name "Trouble" ) && "kong" ) 4. let a = 21; let b = 5; (a = 1) && (a != b) 5. let pet = "alligator"; let escape "boat"; "The " + pet + " escaped. It was last seen on a + escape; 6. let George "orge"; let nickname = "Conquerer"; let combinedName = "George the Conquerer" (combinedName === George) 11 (George !== "George") && (combinedName === "Conquerer") || (nickname === 42) 7. (042 "42") && (42== "42")) || ((42 "234")) 8. ((24*23+12/2+22) % 2 === 1) 9. let sentence = "The world is green!"; sentence.substring(4,9) === "world" && sentence.length 5 && sentence.substring(0,3) === "The world is red".substring(0,3); 10. let bigCar true; let bearTrap; "The variable bigcar has the value : "+ bigCar + ", while variable bearTrap is + bearTrap + "If I compare bearTrap with undefined I get + bearTrap===undefined
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
