# Глобальные объекты

## WINDOW

Это глобальный объект, доступный в коде JavaScript, если он запускается в браузере.

В этом объекте хранится информация о пользователе и настройках браузера (язык, месторасположение, текущая вкладка и т.д.)

В браузере глобальные функции и переменные, объявленные с помощью `var` (не `let/const`!), становятся свойствами глобального объекта

## DOCUMENT

Это глобальный объект вкладки браузера. Хранится как свойство Window.


---

# 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://aleksandra-hrevtsova.gitbook.io/senior-front-end-javascript/globalnye-obekty.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.
