JSFiddle - React, Tailwind, and code Playground

by Abdul Ahmad

JavaScript

var allShoes = [ 
	{
  	size: 5,
    style: 'boot'
  },
  {
  	size: 9,
    style: 'flat'
  },
  {
  	size: 8,
    style: 'heel'
  },
  {
  	size: 8.5,
    style: 'boot'
  },
];


function filterShoeBySize(theShoeThatWeJustGotFromTheArray) {
	theShoeThatWeJustGotFromTheArray.size;
}

allShoes.forEach(filterShoeBySize);



var students = [
  { name: 'abdul' },
  { name: 'ashley' },
  { name: 'mahmud' },
];

function executeLessonPlan(student) {
  console.log('executing lesson plan', student.name);
}

students.forEach(executeLessonPlan);