---
title: Void Type
---

# Void Type

Should not be used for variables, use `null` or `undefined`.  
However, use it for functions that do not return a value.  

```typescript
const greeting(): void {
    alert('Hello, and Welcome to My Webpage!');
}
```