Skip to content

Instantly share code, notes, and snippets.

@jaskaran1989
Last active October 19, 2018 02:15
Show Gist options
  • Save jaskaran1989/06facd3c58524f9590eb1c27167a46b0 to your computer and use it in GitHub Desktop.
Save jaskaran1989/06facd3c58524f9590eb1c27167a46b0 to your computer and use it in GitHub Desktop.
JavaScript Functions -filter
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