Syntax errorobj.number errorobj.number = number; The number property contains the error number of the error.This method is read/write, so you can assign an error number using this property.