> 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/atama-operatorleri.md).

# Atama Operatörleri

Bir öğenin ***değerini*** belirlemek için kullanılan **`=`** sembolüdür. Bu operatörü şimdiye kadar birçok kez kullandık zaten. Örnek.

{% code lineNumbers="true" %}

```javascript
let degisken = 'Javascript';
```

{% endcode %}

## Toplama Ataması ( `+=` )

Bir öğenin ***değerinin*** üzerine eklenecek değerleri işleyip atamak için kullanılan **`+=`** sembolüdür. Örnek.

{% code lineNumbers="true" %}

```javascript
let sayi = 1923;
sayi += 100; // sayi değerinin varolan değerinin üzerine 100 ekledik ve atadık.
// Bunun daha uzun yöntemi de şudur: sayi = sayi + 100;
alert(sayi); // 2023
```

{% endcode %}

{% code lineNumbers="true" %}

```javascript
let str = 'Java';
str += 'script'; // str değerinin varolan değerini 'script' ile birleştirdik ve atadık.
alert(str); // 'Javascript'
```

{% endcode %}

## Çıkarma Ataması ( `-=` )

Bir öğenin ***değerini*** üzerinden çıkarılacak değerleri işleyip atamak için kullanılan **`-=`** sembolüdür. Örnek.

{% code lineNumbers="true" %}

```javascript
let sayi = 2023;
sayi -= 100; // sayi değerinin varolan değerinin üzerinden 100 çıkardık ve atadık.
// Bunun daha uzun yöntemi de şudur: sayi = sayi - 100;
alert(sayi); // 1923
```

{% endcode %}

## Çarpma Ataması ( `*=` )

Bir öğenin ***değeri*** ile çarpılacak değerleri işleyip atamak için kullanılan **`*=`** sembolüdür. Örnek.

{% code lineNumbers="true" %}

```javascript
let sayi = 20;
sayi *= 5; // sayi değerini 5 ile çarptık ve atadık.
// Bunun daha uzun yöntemi de şudur: sayi = sayi * 5;
alert(sayi); // 100
```

{% endcode %}

## Bölme Ataması ( `/=` )

Bir öğenin ***değeri*** ile bölünecek değerleri işleyip atamak için kullanılan **`/=`** sembolüdür. Örnek.

{% code lineNumbers="true" %}

```javascript
let sayi = 100;
sayi /= 5; // sayi değerini 5 ile böldük ve atadık.
// Bunun daha uzun yöntemi de şudur: sayi = sayi / 5;
alert(sayi); // 20
```

{% endcode %}

## Üssüne Atama ( `**=` )

Bir öğenin ***değeri*** ile üssü alınacak değer işleyip atamak için kullanılan **`**=`** sembolüdür. Örnek.

{% code lineNumbers="true" %}

```javascript
let sayi = 10;
sayi **= 2; // sayi değerinin 2.üssünü aldık ve atadık.
// Bunun daha uzun yöntemi de şudur: sayi = sayi ** 2;
alert(sayi); // 100
```

{% endcode %}

## Kalanına Atama ( `%=` )

Bir öğenin ***değeri*** ile bölünecek değeri işleyip kalanı atamak için kullanılan **`%=`** sembolüdür. Örnek.

{% code lineNumbers="true" %}

```javascript
let sayi = 10;
sayi %= 3; // sayi değerini 3'e böldük ve kalanına atadık.
// Bunun daha uzun yöntemi de şudur: sayi = sayi ** 2;
alert(sayi); // 100
```

{% endcode %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://hanuce.gitbook.io/javascript-egitimi/operatorler/atama-operatorleri.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
