Given the following code:
```javascript
var data;
```
What is the value of `data` when the code runs?
> ''In JavaScript, any variable declared but not assigned a value is automatically set to `undefined`.''
Example:
```javascript
var data;
console.log(data); // undefined
```
* MDN Web Docs: undefined
* JavaScript Guide: Variables
---
Lashandra
18 days agoVan
23 days agoTyra
1 month agoJohnathon
2 months agoBarrett
2 months agoChandra
2 months ago