> For the complete documentation index, see [llms.txt](https://westsilver.gitbook.io/study-script/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://westsilver.gitbook.io/study-script/javascript/jacascript-start/undefined/untitled-4.md).

# 변수

## 변수(Variable)

> * 변하는 데이터&#x20;
> * 변수는 문자나 숫자 같은 값을 담는 컨테이너로, 값을 유지할 필요가 있을 때 사용

### 변수의 선언

{% hint style="info" %}
**var** 변수명 = 값;
{% endhint %}

```javascript
var a = 1;
alert(a + 1); //2

var a = 2;
alert(a+1);  //3

var first = "coding";
alert(first + " everybody"); //coding everybody
```
