+ 4

Description if conditions are linked to else statements and writing the correc

Description if conditions are linked to else statements and writing the correct condition can be quite complicated :D. Your assignment is to write the correct conditions inside the if statements below in order to render the 2 print statements true! Replace/Complete the following code. (The XX is what you need to replace)a = 10 b = 9 c = 11 d = 10 y = 9 z = 11 if (XX) { console.log("a is bigger than b AND smaller than c AND equal to d"); } if (XX) { console.log("z OR y are bigger than a"); }

19th Nov 2021, 5:03 PM
Zhenis Otarbay
Zhenis Otarbay - avatar
1 ответ
+ 2
if (a>b && a<c && a===d) { console.log("a is bigger than b AND smaller than c AND equal to d"); } if (z||y>a) { console.log("z OR y are bigger than a"); }
19th Nov 2021, 8:52 PM
JaScript
JaScript - avatar