Computers and Technology

What will be displayed in the user's browser after the following code executes if the user enters 87 at the prompt? "use strict"
var getInfo = function() {
grade = parseInt(prompt("What's your score on the test?"));
var newGrade = getResult(grade);
alert("Your grade, curved, is " + newGrade);
};

var getResult = function(grade) {
var newGrade = grade + 5;
return (newGrade);
};

a. an alert will display: Your grade, curved, is 92
b. an alert will display: Your grade, curved, is NaN
c. nothing will display; grade is an undeclared variable
d. nothing will display; newGrade cannot be declared twice

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 15:30, 1232444553
Which of the following examples has four beats in each measure?
Answers: 2
image
Computers and Technology, 22.06.2019 17:30, babyface1686
How do you make a lenny face? plz, brailiest to who can answer first.
Answers: 1
image
Computers and Technology, 22.06.2019 19:00, trintrin227
In he example code, what does the title attribute create? a tool tip an element a source a markup
Answers: 1
image
Computers and Technology, 22.06.2019 21:00, bryanatwin1536
Describir textbook icon_person mira los dibujos y describe lo que estΓ‘ pasando. usa los verbos de la lista.
Answers: 1
Do you know the correct answer?
What will be displayed in the user's browser after the following code executes if the user enters 87...

Questions in other subjects: