Void

The void type definitely represents the absence of any type and its use is constrained to annotating functions that do not return an actual value. Therefore, there is no return type either. We already had the chance to see this with an actual example in the previous chapter:

resetPomodoro(): void {
this.minutes = 24;
this.seconds = 59;
}
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset