Last active
October 19, 2018 02:15
-
-
Save jaskaran1989/06facd3c58524f9590eb1c27167a46b0 to your computer and use it in GitHub Desktop.
JavaScript Functions -filter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var scores =[3,12,5,23,19,7]; | |
var topscores = scores.filter(score=>score>5); | |
console.log(topscores); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment