subject

Compare userNumber with compareNumber and display 'Numbers are not equal' if the numbers are different. Then, display 'Variables are not identical' if the variables are not identical (not strictly equal). 1 var compareNumber = 3; // Code will be tested with: 3, 8, 42 2 var userNumber = '3'; // Code will be tested with: '3', 8, 'Hi' 4 if(userNumber se compareNumber){ 5 console. log("Variables are identical"); 6 7 else if(user Number 1 = compareNumber){ 8 console. log("Numbers are not equal"); 9 ] 10 else? 12 } 2 Check Try again X Testing log when compareNumber = 3 and userNumber = "3" Yours and expected differ. See highlights below. Yours Yours has no output Expected variables are not identical X Testing log when compareNumber = 8 and user Number = "9" Yours and expected differ. See highlights below. Yours Variables are identical Expected Expected no output X Testing log when compareNumber = 42 and user Number = "Hi". Yours and expected differ. See highlights below. Special character legend Yours Numbers are not equal Expected Numbers are not equal Variables are not identicale

ansver
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 13:30, morganwendel126
Use the keyword strategy to remember the meaning of the following word. the meaning for the word has been provided. write your keyword and describe the picture you would create in your mind. centurion: a commander in the army of ancient rome. keyword: picture:
Answers: 2
image
Computers and Technology, 22.06.2019 19:20, mayaparness
Write a program that prompts the user to input a string. the program then uses the function substr to remove all the vowels from the string. for example, if str = "there", then after removing all the vowels, str = "thr". after removing all the vowels, output the string. your program must contain a function to remove all the vowels and a function to determine whether a character is a vowel.
Answers: 2
image
Computers and Technology, 23.06.2019 09:00, opgbadwolf5
What provides an array of buttons for quick access to commonly used commands and tools
Answers: 1
image
Computers and Technology, 24.06.2019 01:30, BIKRAMlawati5544
Could you find out how im still getting an 83 percent on this in edhesive a = input("enter an animal: ") s = input ("enter a sound: ") e = "e-i-e-i-o" print ("old macdonald had a farm, " + e) print ("and on his farm he had a " + a + "," + e) print ("with a " + s + "-" + s + " here and a " + s + "-" + s + " there") print ("here a " + s+ " there a " + s) print ("everywhere a " + s + "-" + s ) print ("old macdonald had a farm, " + e)
Answers: 2
You know the right answer?
Compare userNumber with compareNumber and display 'Numbers are not equal' if the numbers are differe...

Questions in other subjects:

Konu
Mathematics, 29.06.2019 07:20