> For the complete documentation index, see [llms.txt](https://hanuce.gitbook.io/javascript-egitimi/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hanuce.gitbook.io/javascript-egitimi/operatorler/virgul-operatoru.md).

# Virgül Operatörü

Farklı bir operatördür. Aralarına virgüller koyarak yazdığımız ifadeleri yürütür fakat değeri en son yazdığımız ifadedir. Okunurluğu azaltsa da kullanımı yaygındır. Parantez içinde kullanmayı unutmayınız. Örnek.

{% code lineNumbers="true" %}

```javascript
let cevre = (a = 3, b = 4, c = 5, a + b + c);
alert(cevre); //12
```

{% endcode %}

Değerin sondaki ifade olduğuna dikkat ediniz.

{% code lineNumbers="true" %}

```javascript
let a = 3, b = 4, c = 5;
let deger = (a, b, c);
alert(deger); //5
```

{% endcode %}

{% code lineNumbers="true" %}

```javascript
let durum = (a = 3, b = 4, c = 5, 'Değişken oluşturma başarılı');
alert(durum);
alert(a, b, c); //'Değişken oluşturma başarılı'
```

{% endcode %}
