subject

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

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 08:30
On the loan worksheet in cell c9 enter pmt function to calculate the monthly payment for the altamonte springs 2018 facilities loan. ensure that the function returns a positive value and set the reference to cells b5 and b6 as absolute references.
Answers: 2
question
Computers and Technology, 23.06.2019 08:00
What is a scenario where records stored in a computer frequently need to be checked
Answers: 2
question
Computers and Technology, 23.06.2019 19:00
Whose task it is to ensure that the product flows logically from one step to another?
Answers: 3
question
Computers and Technology, 24.06.2019 00:00
For the following example of making a peanut butter and jelly sandwich, identify which are inputs, processes, or outputs: bread scooping and spreading peanut butter plate scooping and spreading jelly finished sandwich putting two pieces of covered bread together dirty plate crumbs
Answers: 2
You know the right answer?
What will be displayed in the user's browser after the following code executes if the user enters 87...
Questions
question
English, 11.07.2019 09:30
question
Social Studies, 11.07.2019 09:30
question
Mathematics, 11.07.2019 09:30
question
Mathematics, 11.07.2019 09:30