---
title: Null
canonical_url: https://mew-lang.org/language/primitives/null/
sidecar_url: https://mew-lang.org/language/primitives/null.md
content_hash: sha256:5505c709fb7106f6341bff1dddd2ffe14c49246f7a803bca3d3365d5c47b1594
tokens: 232
uid: language.primitives.null
reading_time_minutes: 1
---

Language
# Null

 
The `null` keyword represents a value indicating that there is no value.

 
```mew
let text: string = null;
```

 
### What can be null

 
A `string`, an array, `any`, and a type you declare can hold `null`. The integer and floating point types, `bool` and `char` cannot, so assigning `null` to one is an error.

 
```mew
let text: string = null;
let items: i32[] = null;
let value: any = null;
```

 
An integer, a float, a `bool` or a `char` has no such value.

 
```mew
let count: i32 = null;
```

 
### Null needs a type

 
`null` says nothing about the type a variable should have, so a `let` with only `null` to go on is an error. Write the type down.

 
```mew
let text = null;
```

 
```mew
let text: string = null;
```

 
[Previous
                
                Primitives](/language/primitives/)[Next
                    
                Numbers](https://mew-lang.org/language/primitives/numbers.md)