# 참조 연산자

자바스크립트에서 객체는 (functions, arrays, regexp etc)에 해당하고 이것은 다음을 의미합니다.

## 참조에 대한 레퍼런스

```javascript
var foo = {}
var bar = foo // bar is a reference to the same object

foo.baz = 123
console.log(bar.baz) // 123
```

## 참조에 대한 일치연산자 레퍼런스

```javascript
var foo = {}
var bar = foo // bar is a reference
var baz = {} // baz is a *new object* distinct from `foo`

console.log(foo === bar) // true
console.log(foo === baz) // false
```


---

# 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://radlohead.gitbook.io/typescript-deep-dive/recap/references.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.
