The 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");
}
The 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");
}