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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 13:00, torresnoemi899
Which of the following statements is false? a. a class can directly inherit from class object. b. if the class you're inheriting from declares instance variables as private, the inherited class can access those instance variables directly. c. a class's instance variables are normally declared private to enforce good software engineering. d. it's often much more efficient to create a class by inheriting from a similar class than to create the class by writing every line of code the new class requires.
Answers: 3
image
Computers and Technology, 23.06.2019 15:30, taapeters
Brian wants to conduct an online search with a certain phrase. he intends to use the words books that belong to the 1800s in his search. how should he use the word that in his search?
Answers: 1
image
Computers and Technology, 23.06.2019 18:30, erjalinalii
Janice recently received her college degree and is looking for a job. she is worried that since she just finished school, she will be required to repay her perkins and direct subsidized loans immediately. janice pulls out the paperwork she signed and reviews it again for repayment information. after reading all of the information, janice discovers that
Answers: 2
image
Computers and Technology, 23.06.2019 21:00, kkpsmith
Alcohol’s affects on the cornea and lens of the eye make it more difficult
Answers: 1
You know the right answer?
When this function is called, the smaller of two numbers is displayed. What Boolean expression would...

Questions in other subjects: