Search⌘ K

Challenge: Add Enumerations

Explore how to define and implement enumeration attributes in JavaScript models using a meta-class. Learn to extend model methods, add validation, and integrate choice widgets for input and output in a movie app. This lesson helps you enhance your app with single- and multi-valued enumerations and improve your front-end development skills.

We'll cover the following...

Problem statement

In addition to correcting issues that arise in the validation application, you’ll also have to do the following:

  1. Define enumeration data types with the help of the Enumeration meta-class. Also, define any enumeration attributes together with a static check function and implicit get and set methods in the ...