Files

22 lines
446 B
Markdown
Raw Normal View History

2018-10-12 15:37:13 -04:00
---
title: Declare String Variables
---
# Declare String Variables
2018-10-12 15:37:13 -04:00
---
## Hints
### Hint 1
2018-10-12 15:37:13 -04:00
In JavaScript, variables are <strong>dynamic</strong>. That means they can hold numbers, strings, or any other data type at a given time. To declare a string, simply <strong>initialize</strong> (create) a variable:
```javascript
var a;
```
2018-10-12 15:37:13 -04:00
Then, using single or double quotation marks, declare the string:
```javascript
a = "Hello Camper!";
```