Skip to content

Digital school catalog that holds quick reference material for each school in New York City for the city's Department of Education. A parent _School_ class and three child classes (PrimarySchool, MiddleSchool, HighSchool).

Notifications You must be signed in to change notification settings

candytale55/School-Catalogue_JS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

School-Catalogue_JS

General info

Digital school catalog that holds quick reference material for each school in New York City for the city's Department of Education.

A parent School class and three child classes (PrimarySchool, MiddleSchool, HighSchool).

Features

Classes have the following properties, getters, setters, and methods:

School

Properties:

  • name (string),
  • level (one of three strings: 'primary', 'middle', or 'high')
  • numberOfStudents (number)

Getters:

  • all properties have getters

Setters:

  • for the numberOfStudents property

Methods:

  • .quickFacts()
  • .pickSubstituteTeacher() (static method) This method takes one parameter substituteTeachers that is an array of strings. The method randomly generates a number between 0 and one less than the length of the substituteTeachers array to use as index and return a substitute teacher.

Primary

  • extends School
  • Properties: pickupPolicy (string)

Middle

  • extends School
  • Does not include any additional properties or methods

High

  • extends School
  • Properties: sportsTeams (array of strings)

To-do list:

  • Add more properties to each class (averageTestScores, schoolOverview, etc.)
  • Create a class called SchoolCatalog that holds a collection of schools.
  • Create an instance of SchoolCatalog for primary, middle, and high schools.

Screenshots

Example screenshot

Technologies

  • Javascript ES6

Setup

NA - It's only coding examples, there's no setup.

Status

Project is: technically finished, but I will probably fix those items in the To-Do list later.

References

School Catalogue is a Codecademy project.

About

Digital school catalog that holds quick reference material for each school in New York City for the city's Department of Education. A parent _School_ class and three child classes (PrimarySchool, MiddleSchool, HighSchool).

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published