GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — Comparisons by emadpoursina · Pull Request #101 · javascript-tutorial/fa.javascript.info ConversationTranslation is done. Please review and commit if anything is wrong.
mahdyar
requested changes
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hello @emadpoursina,
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
There was an error while loading. Please reload this page.
|
/done |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
There is a folder which contains the tasks and solutions that should also be translated.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| # مقایسه ها | ||
|
|
||
| We know many comparison operators from maths. | ||
| ما عملگرهای زیادی را از ریاضی می شناسیم. |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
عملگرهای مقایسهای زیادی را از ریاضیات میشناسیم. would be a better translation.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| ## برابری در رشته ها | ||
|
|
||
| A regular equality check `==` has a problem. It cannot differentiate `0` from `false`: | ||
| یک علامت مقایسه برابری `==` یک مشکل دارد. این عملگر بین `0` و `false` تفاوتی قائل نمی شود: |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
یک علامت مقایسه برابری معمولی
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| ```` | ||
|
|
||
| ## Strict equality | ||
| ## برابری در رشته ها |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
It's strict, not strings.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| ``` | ||
|
|
||
| The same thing happens with an empty string: | ||
| دقیقا همین اتفاق برای رشته خالی هم می افتد: |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
یک رشتهٔ خالی
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| - از علامت های مقایسه ای `>= > < <=` برای مقایسه مقادیری که ممکن از `undefined/null` شوند استفاده نکنید مگر اینکه واقعا متوجه عواقب کارهای خود هستید. اگر متغیری می تواند این مقادیر را داشته باشد، آن ها را به صورت جداگانه بررسی کنید. | ||
|
|
||
| ## Summary | ||
| ## جمع بندی |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
خلاصه is what we used in other articles, so it'd be better if you use the same.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| - در عبارت `(3)` عملگر `==`, `false` برمی گرداند زیرا `undefined` تنها برابر `null` بوده و نابرابر با هر مقدار دیگری. | ||
|
|
||
| ### Avoid problems | ||
| ### از مشکلات دوری کن. |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
اجتناب از مشکلات
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| : `null/undefined` به عدد تبدیل می شوند: `null` تبدیل به `0` می شود در حالی که `undefined` به `NaN`. | ||
|
|
||
| Now let's see some funny things that happen when we apply these rules. And, what's more important, how to not fall into a trap with them. | ||
| حال بگذارید که چند اتفاق با مزه و جالب که زمانی که این قانون ها را اعمال می افتند را بررسی کنیم ; و مهم تر از همه ببینیم که چگونه داخل این تله ها نیافتیم. |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
نیفتیم
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
; is not needed, use ..
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
زمانی که این قانونها را اعمال میکنیم را ببینیم
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Instead of
چند اتفاق با مزه و جالب که زمانی که,
چند اتفاق با مزه و جالب زمانی که would be a better translation.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
چند اتفاق بامزه و جالب که با اعمال این قانون ها می افتند را ببینیم.
I think is better.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Please make the requested changes. After it, add a comment "/done". |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
/done |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| ``` | ||
|
|
||
| Some of the reasons: | ||
| دلیل پاسخ ها: |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
بعضی از دلایل: would be a better translation.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| @@ -1,10 +1,10 @@ | |||
| importance: 5 | |||
| اهمیت: 5 | |||
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Metadata shouldn't be translated. [+]
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| 1. true, نیاز به توضیح نداره | ||
| 2. false, بر اساس مقایسه لغت نامه ای که `"a"` کوچک تر از `"p"` است. | ||
| 3. دوباره مانند مثال قبل در مقایسه لغت نامه ای حرف اول `"2"` بزرگ تر از حرف اول عبارت دیگر `"1"` است. | ||
| 4. ارزش های `null` و `undefined` تنها برابر یکدیگرند. | ||
| 5. برابری سختگیرانه, سختگیرانه است. به دلیل تفاوت در نوع داده پاسخ false است. | ||
| 6. مانند مثال شماره `(4)`، `null` تنها برابر `undefined` است. | ||
| 7. برابری سختگیرانه برای دو داده از دو نوع متفاوت |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Please don't remove dots from the end of sentences. e.g:
برابری سختگیرانه برای دو داده از دو نوع متفاوت <- برابری سختگیرانه برای دو داده از دو نوع متفاوت.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Also in Persian, we don't have ,, using ، would be a better idea.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Please make the requested changes. After it, add a comment "/done". |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
/done |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thank you 💖 I updated the Progress Issue #1 🎉 🎉 🎉 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.