# Veri Tipleri 🐥

Her programlama dilinde olduğu gibi JavaScript dilinde de yerleşik veri tipleri vardır, ancak bunlar bir dilden diğerine göre farklılık gösterebilir.&#x20;

![Hadi bu veri tiplerini beraber öğrenelim.](/files/-LdVRa0joBscVLuCBC7U)

JavaScript' te Primitive ve Non-Primitive Values ( Object - Referance ) 2 ana veri türüdür.

### Primitive ( İlkel ) Veri Tipleri&#x20;

JavaScript dilinde, ilkel veri tipi (ilkel değer) nesne olmayan ve methodu olmayan verilerdir. 7 ilkel veri tipi vardır:

* Number ( Sayı )
* String ( Katar - Karakter Dizesi )
* Undefined ( Tanımsız )
* Null ( Değer Yok )
* Boolean ( Mantıksal Veri Tipleri )
* BigInt ( Yerleşik Nesne )
* Symbol ( ECMAScript 6 ) ve daha fazlası...

İlkel değerler, değişmez veri tipi olarak bilinir çünkü oluşturulduktan sonra değiştirmenin yolu yoktur. İlkel değer ile ilkel bir değer atanan değişkenin karıştırılmaması önemlidir. Değişken yeni bir değere atanabilir ancak mevcut değer nesnelerin, dizilerin ve fonksiyonların değiştirilebileceği şekillerde değiştirilemez.

Bir değişkenin hangi veri tipinde olduğunu şu şekilde öğrenebiliriz:

```javascript
typeof 'cagatay' // string
typeof 23 // number
typeof {} // object
typeof true // boolean
typeof [] // object

typeof null // object :)
typeof NaN // number :)
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://cagataydev.gitbook.io/cagataycali/javascript-nedir/veri-tipleri.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
