1const products = [
2 { name: 'Laptop', price: 32000, brand: 'Lenovo', color: 'Silver' },
3 { name: 'Phone', price: 700, brand: 'Iphone', color: 'Golden' },
4 { name: 'Watch', price: 3000, brand: 'Casio', color: 'Yellow' },
5 { name: 'Aunglass', price: 300, brand: 'Ribon', color: 'Blue' },
6 { name: 'Camera', price: 9000, brand: 'Lenovo', color: 'Gray' },
7];
8//Get products that price is greater than 3000 by using a filter
9const getProduct = products.filter(product => product.price > 3000);
10console.log(getProduct)
11//Expected output:
12/*[
13 { name: 'Laptop', price: 32000, brand: 'Lenovo', color: 'Silver' },
14 { name: 'Camera', price: 9000, brand: 'Lenovo', color: 'Gray' }
15 ]
16*/