Skip to content

Conversation

@mahdiHash
Copy link
Contributor

Please review and commit / comment if anything is wrong
I had trouble with translating end of the line 500, so it would be the best if you check it yourself too!
And read the translation of comments as you "see" them. Just ignore the text direction for comments or otherwise, it wouldn't look correct that way 😬

- ...و غیره.
They have their special features that we'll study later. Sometimes people say something like "Array type" or "Date type", but formally they are not types of their own, but belong to a single "object" data type. And they extend it in various ways.
هر کدام از آنها خصوصیات خاص خود را دارند که بعدا آنها را می‌آموزیم. بعضی اوقات افراد چیزهایی مانند "نوع Array" یا "نوع Date" را به زبان می‌آورند، اما به طور رسمی آنها نوعی از خود نیستند، و به نوع "object" تعلق دارند. و آنها این را با راه‌های مختلف گسترش می‌دهند.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

but formally they are not types of their own, but belong to a single "object" data type. And they extend it in various ways.

would be translated to:

اما به صورت رسمی، آن‌ها یک نوع خاص نیستند، بلکه به یک نوع «object» تعلق دارند و آن را به روش‌های مختلف گسترش می‌دهند.

```

The dot notation cannot be used in a similar way:
نقطه نمی‌تواند به این شکل استفاده شود:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

همان شکل‌‍*

همچنین ما می‌توانستیم به جای `key` از اسمی دیگر برای متغیر استفاده کنیم. برای مثال، `"for (let prop in obj)"` هم خیلی استفاده می‌شود.
### Ordered like an object
### مرتب مثل یک شیء
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

مرتب‌شده*

# سلام شیء

Write the code, one line for each action:
کد لازم را بنویسید، برای هر عمل، یک خط:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

کد را بنویسید، هر خط کد برای یک عمل:*

همانطور که از فصل <info:types> می‌دانیم، 8 نوع داده در جاوااسکریپت وجود دارد. 7 مورد "اولیه یا اصلی" نامیده می‌شوند، به این دلیل که مقدارهای آنها فقط دارای یک چیز است (رشته یا عدد یا هر چیزی).

In contrast, objects are used to store keyed collections of various data and more complex entities. In JavaScript, objects penetrate almost every aspect of the language. So we must understand them first before going in-depth anywhere else.
در مقابل، شیءها (object) برای ذخیره‌سازی مجموعه‌ای از داده‌های گوناگون و چیزهای پیچیده‌تر استفاده می‌شوند. در جاوااسکریپت، شیءها تقریبا به تمام جنبه‌های زبان نفوذ کرده‌اند. پس ما باید قبل از اینکه عمیقا به موضوع دیگری وارد شویم شیءها را بشناسیم.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

objects*

![](object.svg)

An empty object ("empty cabinet") can be created using one of two syntaxes:
یک شیء خالی یا empty ("قفسه خالی") می‌تواند با استفاده از دو سینتکس ساخته شود:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no need for the English equivalent here: empty

Comment on lines 17 to 18
let user = new Object(); // "سینتکس "سازنده شیء
let user = {}; // "سینتکس "شیء لیترال
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't translate these two phrases and let them be as they are:
object constructor
object literal

@javascript-translate-bot

Please make the requested changes. After it, add a comment "/done".
Then I'll ask for a new review 👻

@mahdiHash
Copy link
Contributor Author

Thank you for your review @mahdyar
/done

Copy link
Member

@mahdyar mahdyar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @mahdiHashemi14!

@mahdyar mahdyar merged commit 67250db into javascript-tutorial:master May 4, 2021
@javascript-translate-bot

Thank you 💖 I updated the Progress Issue #1 🎉 🎉 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants