Understanding and using the void type
In this lesson, we'll learn about the 'void' type.
We'll cover the following...
An example #
The code below outputs a string to the console.
function logMessage(message: string) {console.log(message);}
The function doesn’t return anything, so what is the return type of the function?
The void
...