Skip to content

Latest commit

 

History

History
14 lines (10 loc) · 262 Bytes

section3.13.md

File metadata and controls

14 lines (10 loc) · 262 Bytes

Section 3.13: Void

If you have no type at all, commonly used for functions that do not return anything:

function log(): void {
  console.log('I return nothing');
}

log(); // I return nothing

// void types Can only be assigned null or undefined .