Expert Angular
上QQ阅读APP看书,第一时间看更新

Void

Void is actually nothing. It can be used as the return type of a function to declare that this function will not return any value:

function alertMessage(): void { 
    alert("This function does not return any value"); 
}