Quiz: Constraint Validation in JS

Let’s take a short quiz on constraint validation in JS.

1

(Select all that apply) Consider the simple information design model shown in the class diagram.

Which of the following methods have to be added to the Publisher class in a corresponding JS class model?

A)

checkName(n: String): ConstraintViolation

B)

getName(): String

C)

setName(n: String)

D)

checkNameAsId(n: String): ConstraintViolation

Question 1 of 30 attempted

Get hands-on with 1400+ tech skills courses.