subject

Can someone explain what this code does and mean? I'm supposed to figure out what this means/does for my class assignment but, I don't understand what the -Infinity is supposed to do and I don't understand the point of the if statement. function highScore(finalpts) {
var end = -Infinity;
for (var i =0; i != finalpts. length; ++i) {
if (finalpts[i] > end) {
end = finalpts[i];
}
}
return end;
}

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 11:30
One subtask in the game is to roll the dice. explain why is roll the dice an abstraction.
Answers: 3
question
Computers and Technology, 22.06.2019 15:30
What is a costume plot? why is it important to a film or theater production?
Answers: 2
question
Computers and Technology, 22.06.2019 17:30
Which tab should you open to find the option for adding a header?
Answers: 1
question
Computers and Technology, 24.06.2019 04:30
Which of the following terms refers to a collection of different types of software that share the goal of infiltrating a computer and making it do something? a- malware b- virus c- spyware d- trojan horse
Answers: 2
You know the right answer?
Can someone explain what this code does and mean? I'm supposed to figure out what this means/does fo...
Questions
question
History, 03.08.2019 19:20