subject

Code Example 5-1 1. var getResult = function() { 2. var num1 = 54.95; 3. var num2 = .1; 4. var result = parseFloat(prompt("What is " + num1 + " * " + num2 + "?")); 5. if (result != (num1 * num2)) { 6. alert("Incorrect"); 7. } 8. else { 9. alert("Correct!"); 10. } 11. }; (Refer to Code Example 5-1) Why would "Incorrect" be displayed if the user entered 5.495 when prompted by this code?

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 18:30
List 3 items that were on kens resume that should have been excluded
Answers: 1
question
Computers and Technology, 24.06.2019 17:50
Acontact list is a place where you can store a specific contact with other associated information such as a phone number, email address, birthday, etc. write a program that first takes in word pairs that consist of a name and a phone number (both strings). that list is followed by a name, and your program should output that name's phone number.
Answers: 1
question
Computers and Technology, 25.06.2019 04:00
Use the wrap text icon to modify which graphic appears in the front of layered images modify the picture effects change the way text is wrapped around an object apply wordart to the text
Answers: 1
question
Computers and Technology, 25.06.2019 07:00
What statement would cause polarization
Answers: 1
You know the right answer?
Code Example 5-1 1. var getResult = function() { 2. var num1 = 54.95; 3. var num2 = .1; 4. var resul...
Questions
question
Mathematics, 14.12.2020 17:10
question
Chemistry, 14.12.2020 17:10
question
Mathematics, 14.12.2020 17:10
Questions on the website: 13722367