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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 02:00, kelseybell5522
For a typical middle-income family, what is the estimated cost of raising a child to the age of 18? $145,500 $245,340 $304,340 $455,500
Answers: 1
image
Computers and Technology, 24.06.2019 22:30, yaretxi
Telling a computer that is already on to turn again is known as what type of boot?
Answers: 1
image
Computers and Technology, 25.06.2019 00:30, alinton06
What is a typeface? a. a collection of similar text b. a collection of similar fonts c. a collection of similar designs d. a collection of similar colors e. a collection of similar images
Answers: 1
image
Computers and Technology, 25.06.2019 03:40, NBASTARK4523
Acurrent vehicle registration expires at of the first owner listed on the registration form. a. stretch and flex b. bend and break c. wear down d. bounce around
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 in other subjects: