Skip to content
Quiz · Primitive and special types · lesson 8 of 8

Quiz — void and the basic types

Question 1 of 2

What does the program print (lines separated by spaces)?

TypeScript
function greet(): void {
    console.log("Hi");
}
const r = greet();
console.log(r);