Modelling Dictionaries



An Abstract Data Structure

A Dictionary is a data structure that allows us as programmers to group data together into ONE construct.

A Dictionary has a:

  • single name
  • parts that are identified using "keys"
  • values that are accessed by using the "key"

In this website, there are several dictionaries that are defined in specific files:



A dictionary containing information about key terms

This has the following keys:

  • topic
  • section
  • subsection
  • term
  • term
  • meaning

This data can be found in the file called terms.js in the folder data

image of queue


A dictionary containing information about books.

This has the following keys:

  • ISBN
  • title
  • author
  • publisher
  • publication
  • cover

This data can be found in the file called books.js in the folder data

image of queue


A dictionary containing information about cars

This has the following keys:

  • registration
  • manufacturer
  • model
  • costPrice
  • deposit
  • monthlyLease
  • leaseTerm
  • leaseCategory
  • dateOfSale
  • allowableMileage
  • actualMileage
  • sellingPrice
  • reservePrice

This data can be found in the file called cars.js in the folder data

image of queue


A dictionary containing information about customers

This has the following keys:

  • email
  • company
  • firstName
  • lastName
  • mobileNo

This data can be found in the file called cars.js in the folder data

image of queue


A dictionary containing information about playing cards

This has the following keys:

  • index
  • value
  • name
  • suit
  • image

This data can be found in the file called cards.js in the folder data

image of queue


This video goes through the modelling on this page: