Skip to content

Instantly share code, notes, and snippets.

@maxmatthews
Created November 16, 2022 17:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maxmatthews/718bfabdfc02624fe3ab0332360a718e to your computer and use it in GitHub Desktop.
Save maxmatthews/718bfabdfc02624fe3ab0332360a718e to your computer and use it in GitHub Desktop.
schools.js data and questions
const schools = [
{
type: "elementary",
teachers: [
{
name: "Mr. Smith",
class: "Pirate History",
students: [
"Toya Whitebeard",
"Snooty Helge",
"Cutthroat Sue The Daring",
],
grades: [94, 99],
},
{
name: "Mr. Matthews",
class: "Coding for Youngin's",
students: ["Abigail Vera", "Estelle Sigmund"],
grades: [75, 100],
},
],
},
{
type: "middle",
teachers: [
{
name: "Ms. Johnson",
class: "Art",
students: ["James Garcia", "Robert Miller"],
grades: [90, 100],
},
{
name: "Mr. Williams",
class: "Science",
students: ["John Brown", "Andy Jones"],
grades: [60, 90],
},
],
},
{
type: "high",
teachers: [
{
name: "Ms. Thorne",
class: "Theoretical Programming",
students: ["Taylor Taylor", "Jackson Moore"],
grades: [30, 64],
},
],
},
];
//print out all the school types
//print out all the teachers in the middle school
//print out all the class names along with the type of the school
//print out all the students names
//print out the grade average for each teacher & school
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment