A unidirectional functional association is either one-to-one or many-to-one. In both cases such an association is represented, or implemented, with the help of a single-valued reference property.
In this chapter, we show
how to derive a plain JS class model from an OO class model with single-valued reference properties representing unidirectional functional associations,
how to code the JS class model in the form of plain JavaScript model classes,
how to write the view and controller code based on the model code.
Before we show how to derive a plain JS class model and code it in JavaScript, we first introduce a few new elements of the JavaScript language, which we are going to use throughout the JavaScript code discussed in this book.