subject

When this function is called, the smaller of two numbers is displayed. What Boolean expression would not work in line 12 in order to accomplish this goal? 1 var num1 = 5;
2 var num2 = 7;
3 smallest();
4
5 num1 = 8;
6 num2 = 4;
7 smallest();
8
9 function smallest() {
10 console. log("What is smallest? " + num1 + " or " + num2 + "?");
11
12 if ( ) {
13 console. log(num1 + " is the smallest.");
14 } else {
15 console. log(num2 + " is the smallest.");
16 }
17 }

a) num1 < num2 && num2 > num1

b) num2 > num1

c) num1 == num2

d) num1 < num2

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 08:10
Alook-up table used to convert pixel values to output values on a monitor. essentially, all pixels with a value of 190 or above are shown as white (i.e. 255), and all values with a value of 63 or less are shown as black (i.e. 0). in between the pixels are scaled so that a pixel with a value p is converted to a pixel of value 2/127 βˆ’+3969). if a pixel has a value of 170 originally, what value will be used to display the pixel on the monitor? if a value of 110 is used to display the pixel on the monitor, what was the original value of the pixel?
Answers: 1
question
Computers and Technology, 22.06.2019 10:00
Businesses allocate resources for their best and most productive uses. the more a resource, the more costly it will be. a manufacturer that requires scarce and costly resources is likely to charge for its products.
Answers: 2
question
Computers and Technology, 23.06.2019 05:00
In cell b18, enter a formula to calculate the amount budgeted for meals. this amount is based on the daily meal allowance and the total travel days (# of nights+1).
Answers: 1
question
Computers and Technology, 23.06.2019 12:40
Curriculum exam to process a resident's payment, you must click on onesite payments home page. from the a. reports b. my settings o c.transactions o d. rent tab
Answers: 1
You know the right answer?
When this function is called, the smaller of two numbers is displayed. What Boolean expression would...
Questions
question
Mathematics, 16.04.2021 03:20
question
Mathematics, 16.04.2021 03:20
question
Mathematics, 16.04.2021 03:20
question
English, 16.04.2021 03:20
Questions on the website: 13722363