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 10:50
A911 dispatcher is the sole sender of messages to all police officers. while on patrol, officers communicate with the dispatcher who, in turn, relays messages to other officers. the officers do not communicate directly with one another. this illustrates a network.
Answers: 1
question
Computers and Technology, 24.06.2019 09:30
What is the definition of digital literacy?
Answers: 1
question
Computers and Technology, 24.06.2019 12:30
Do you think media is stereotype ? and why?
Answers: 1
question
Computers and Technology, 24.06.2019 15:00
Universal windows platform is designed for which windows 10 version?
Answers: 1
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
Questions on the website: 13722360