Backbone.js model.validate()

The Backbone.js validate model is used to validate the model and input provided by the users. In the case of invalid input, it returns specified error message and if the input is valid, it doesn't specify anything just display the result.

Syntax:

Parameter explanation: