What is the output of the following code?
var scores = [92, 68, 83, 95, 91, 65, 77];
?
var highScores = scores.filter(gradeA);
?
function gradeA(value) {
return value > 90;
}
A. ?[92, 95, 91]
B. ?[96, 97, 98]
C. ?[68, 83, 65, 77]
D. ?[91, 92, 65, 68, 77, 83]
Answer: A
You might also like to view...
A hyperlink is either text or a graphic that you click to go to a file, a location in a file, or a web page
Indicate whether the statement is true or false
You can use Picture ________ to surround your picture with attractive frames, soften the edges of pictures, apply 3-D effects to pictures, and add glossy reflections below your pictures
A) Effects B) contrasts C) softening D) Styles
In the accompanying figure, Item 1 tells you whether the ____.
A. printer is out of paper B. correct printer is selected C. printer is offline D. correct document is selected
What tool is best suited for organizing a spreadsheet of rental cars by category in order to be collapsed or expanded?
A) Outlines B) Grouping C) Slicers D) PivotTables