-3
var Universities = [{
    "State": "ILLINOIS",
    "University": "North Park University",
    "Place": "Chicago"
}, {
    "State": "VERMONT",
    "University": "University of Vermont",
    "Place": "Berlington"
}, {
    "State": "FLORIDA",
    "University": "North Wood University",
    "Place": "Midland"
}, {
    "State": "NEW YORK",
    "University": "Pace State University(undergradations& post graduations",
    "Place": "NY"
}, {
    "State": "ILLINOIS",
    "University": "University of North Alabama",
    "Place": "Florence"
}, {
    "State": "ILLINOIS",
    "University": "Louisiana Technology University",
    "Place": "Ruston"
}, {
    "State": "North Carolina",
    "University": "East Carolina University",
    "Place": "Green Ville"
}, {
    "State": "ARKANSAS",
    "University": "Arkansas State University",
    "Place": "Jones boro"
}, {
    "State": "Oklahoma",
    "University": "University of Tulsa",
    "Place": "Tulsa"
}, {
    "State": "ILLINOIS",
    "University": "Rush University",
    "Place": "Chicago"
}]

How many UNIVERSITIES are there in ILLINOIS state? Please check and help me out.

4

1 Answer 1

1

if i understand your question correctly , maybe use filter can figure it out :

var result = Universities.filter(function (ele) {
    return ele.State == 'ILLINOIS';
});

console.log(result);
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.