The role of the validator is to check whether any input that has made to the transition is valid or not before any transition. If a validator fails to validate the information, then the issue will not move forward towards the destination status of the development.

BY Best Interview Question ON 14 Mar 2019