JavaScript 2022

Term 3 Wednesday

May - July 2022

This site will be updated live during the sessions

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