Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var Cars = {"Saab":"Automobile AB",
- "Volvo":"V40",
- "BMW":"Estorill Blue",
- "Volvo":"V40"
- };
- var Cars = {"Saab":"Automobile AB",
- "Volvo":"V40",
- "BMW":"Estorill Blue",
- "Volvo":"V40"
- };
- var volvo = "V40";
- var numberOfCars = Cars.filter(function (x) {
- return x === volvo;
- }).length;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement