JSFiddle - React, Tailwind, and code Playground
by Abdul Ahmad
JavaScript
function executeLessonPlan(teacher, student) {
console.log('The name of the teacher is: ', teacher.name);
console.log('The name of the student is: ', student.name);
}
var teacherOne = {
name: 'pedro',
subject: 'english',
};
var teacherTwo = {
name: 'the second teacher',
subject: 'math',
};
var studentOne = {
name: 'abdul',
};
var studentTwo = {
name: 'ashley',
};
executeLessonPlan(teacherOne, studentTwo);
executeLessonPlan(teacherTwo, studentOne);