Week 3 (d) Array Filter Method
001let prices = [1.99, 0.55, .99, 99, 0.79, 1.00]; 002 003 004 005 006let poundShopPrices = prices.filter( price => (price <= 1) ); 007 008console.log(poundShopPrices.toString()); 009 010
This site will be updated live during the sessions
001let prices = [1.99, 0.55, .99, 99, 0.79, 1.00]; 002 003 004 005 006let poundShopPrices = prices.filter( price => (price <= 1) ); 007 008console.log(poundShopPrices.toString()); 009 010