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 05:30
Agood flowchart alludes to both the inputs and outputs you will need to receive and give to the user. true or false?
Answers: 3
question
Computers and Technology, 23.06.2019 06:30
To become an audio technician, the most successful tactics might include the following. (select all that apply). learning how to persuade other people gaining different types of experience in audio technology learning as much as possible about art history establishing a reputation as a reliable professional
Answers: 1
question
Computers and Technology, 23.06.2019 07:00
To produce a starlight effect in her photograph, lina should choose the filter for her camera.
Answers: 1
question
Computers and Technology, 23.06.2019 21:40
language consists of basic components, and they are called a. 3; mental images, concepts, and speech b. 2; language acquisition and linguistic relativity c. 3; heuristics, algorithms, and analogies d. 4; phonemes, morphemes, syntax, and semantics e. 2; words and grammar
Answers: 3
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
Mathematics, 21.09.2019 09:00
question
Mathematics, 21.09.2019 09:00
Questions on the website: 13722363