Premium Only Content
							This video is only available to Rumble Premium subscribers. Subscribe to
							enjoy exclusive content and ad-free viewing.
					
								 
			JavaScript ARRAYS of OBJECTS are easy! 🍎
								1 year ago							
						
														21						
								
								
												Automotive					
								
												Education					
								
												Programming					
								
												Coding					
								
												Software Development					
								
												Web Development					
								
												Mobile App Development					
								
												Computer Science					
								
												Coding Tutorial					
								
												Code Learning					
								
												Programming Language					
					
					
			
	
					00:00:00 array of objects
00:01:29 access object properties
00:02:19 push()
00:02:59 pop()
00:03:11 splice()
00:03:28 forEach()
00:04:08 map()
00:05:18 filter()
00:07:09 reduce()
const fruits = [ {name: "apple", color: "red", calories: 95},
{name: "orange", color: "orange", calories: 45},
{name: "banana", color: "yellow", calories: 105},
{name: "coconut", color: "white", calories: 159},
{name: "pineapple", color: "yellow", calories: 37}];
// Access properties of a fruit object
console.log(fruits[0].calories);
// Add a new fruit object
fruits.push({ name: "grapes", color: "purple", calories: 62});
// Remove the last fruit object
fruits.pop();
// Remove fruit objects by indices
fruits.splice(1, 2);
Loading  comments...				
			
		- 	
				 LIVE LIVECaleb Hammer1 hour agoShe Blames MAGA For Her Debt | Financial Audit235 watching
- 	
				 LIVE LIVEThe Big Mig™3 hours agoWhat To Give The Man Who Has EVERYTHING!5,142 watching
- 	
				 1:32:16 1:32:16Benny Johnson2 hours agoSHOCK: Massive Food Stamp FRAUD Exposed: 59% of Welfare are Obese Illegal Aliens!? Americans RAGE…22K39
- 	
				 LIVE LIVEWendy Bell Radio7 hours agoAmerica Deserves Better6,196 watching
- 	
				 22:01 22:01DEADBUGsays2 hours agoDEADBUG'S SE7EN DEADLY HALLOWEENS14.6K5
- 	
				 LIVE LIVETotal Horse Channel13 hours ago2025 IRCHA Derby & Horse Show - October 31st41 watching
- 	
				 1:10:29 1:10:29Chad Prather15 hours agoStanding Holy in a Hostile World54.5K29
- 	
				 1:04:43 1:04:43Crypto Power Hour14 hours ago $10.65 earnedCrypto Price Swings Explained — What Every Investor Needs to Know56.5K7
- 	
				 21:31 21:31Clownfish TV1 day agoOG YouTube is Officially ENDING! Employees Offered BUYOUTS?! | Clownfish TV28.1K45
- 	
				 5:54 5:54Gun Owners Of America21 hours agoThe Virginia Election Could Shift The Balance of Power Nationwide34.7K6