Skip to content

Instantly share code, notes, and snippets.

priyankaa02

Block or report user

Report or block priyankaa02

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@priyankaa02
priyankaa02 / test.js
Created Jan 26, 2019
finding age between 30 and 40
View test.js
function peopleArray(listOfPeople){
let filteredArray = []
for ( var i = 0; i < listOfPeople.length; i++){
if(listOfPeople[i].age > 30 && listOfPeople[i].age < 40){
filteredArray.push(listOfPeople[i])
}
}
return filteredArray
}
You can’t perform that action at this time.