← Winnitude! Search  ·  Reader Mode (2381 ms)
Links: Stay in Reader Retro Site Converter Retro Mode: OFF Original Page ↗
GITHUB · 112 LINKS

Comparisons by emadpoursina · Pull Request #101 · javascript-tutorial/fa.javascript.info

Repository navigation

Comparisons - #101


Merged
mahdyar merged 7 commits into javascript-tutorial:master from emadpoursina:master Mar 30, 2021
Merged

Comparisons #101 mahdyar merged 7 commits into javascript-tutorial:master from emadpoursina:master

Conversation

emadpoursina commented Mar 28, 2021



Copy link Copy Markdown
Contributor

Translation is done. Please review and commit if anything is wrong.

Translate aticle.md 5c7b168
Translation is done. Please review and commit if anything is wrong.
javascript-translate-bot added the review needed label Mar 28, 2021 javascript-translate-bot requested a review from a team March 28, 2021 06:37 mahdyar requested changes Mar 28, 2021
View reviewed changes

mahdyar left a comment



Copy link Copy Markdown
Member

Choose a reason for hiding this comment

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

Hello @emadpoursina ,
First, you should claim the article in #1 .
Also, read the For New Translators section there (#1 ):

The pull request title should be same as the article, e.g. An Introduction to JavaScript (just like comment)

javascript-translate-bot added changes requested and removed review needed labels Mar 28, 2021

javascript-translate-bot commented Mar 28, 2021



Copy link Copy Markdown

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

emadpoursina changed the title Translate aticle.md Comparisons Mar 28, 2021

emadpoursina commented Mar 28, 2021 · edited Loading



Copy link Copy Markdown
Contributor

Author

/done

mahdyar requested changes Mar 28, 2021
View reviewed changes

mahdyar left a comment



Copy link Copy Markdown
Member

Choose a reason for 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.

Comment thread 1-js/02-first-steps/09-comparison/article.md
Outdated
# مقایسه ها

We know many comparison operators from maths .
ما عملگرهای زیادی را از ریاضی می شناسیم .
Comment thread 1-js/02-first-steps/09-comparison/article.md
Outdated
## برابری در رشته ها

A regular equality check `==` has a problem. It cannot differentiate `0` from `false`:
یک علامت مقایسه برابری `==` یک مشکل دارد. این عملگر بین `0` و `false` تفاوتی قائل نمی شود :
Comment thread 1-js/02-first-steps/09-comparison/article.md
Outdated
````

## Strict equality
## برابری در رشته ها
Comment thread 1-js/02-first-steps/09-comparison/article.md
Outdated
```

The same thing happens with an empty string :
دقیقا همین اتفاق برای رشته خالی هم می افتد :
Comment thread 1-js/02-first-steps/09-comparison/article.md
Outdated
- از علامت های مقایسه ای `>= > < <=` برای مقایسه مقادیری که ممکن از ` undefined /null` شوند استفاده نکنید مگر اینکه واقعا متوجه عواقب کارهای خود هستید. اگر متغیری می تواند این مقادیر را داشته باشد، آن ها را به صورت جداگانه بررسی کنید .

## Summary
## جمع بندی
Comment thread 1-js/02-first-steps/09-comparison/article.md
Outdated
- در عبارت `(3)` عملگر `==`, ` false` برمی گرداند زیرا `undefined` تنها برابر `null` بوده و نابرابر با هر مقدار دیگری .

### Avoid problems
### از مشکلات دوری کن.
Comment thread 1-js/02-first-steps/09-comparison/article.md
Outdated
: `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 .
حال بگذارید که چند اتفاق با مزه و جالب که زمانی که این قانون ها را اعمال می افتند را بررسی کنیم ; و مهم تر از همه ببینیم که چگونه داخل این تله ها نیافتیم .

javascript-translate-bot commented Mar 28, 2021



Copy link Copy Markdown

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

emadpoursina added 5 commits March 28, 2021 18:00 translate task and it's solve fe08b35 made some changes and fix some problems 86ec021 made some changes and fix some problems 3b12300 Merge branch 'master' of https://github.com/emadPoursina/fa.javascrip... 72baf5e
...t.info
fix some problems db48d40

emadpoursina commented Mar 28, 2021



Copy link Copy Markdown
Contributor

Author

/done

javascript-translate-bot added review needed and removed changes requested labels Mar 28, 2021 javascript-translate-bot requested a review from a team March 28, 2021 13:41 mahdyar requested changes Mar 28, 2021
View reviewed changes
Comment thread 1-js/02-first-steps/09-comparison/1-comparison-questions/solution.md
Outdated
```

Some of the reasons :
دلیل پاسخ ها :
Comment thread 1-js/02-first-steps/09-comparison/1-comparison-questions/task.md
Outdated
@@ -1,10 +1,10 @@
importance : 5
اهمیت : 5
Comment thread 1-js/02-first-steps/09-comparison/1-comparison-questions/solution.md
Outdated
Comment on lines +15 to +21
1. true, نیاز به توضیح نداره
2. false, بر اساس مقایسه لغت نامه ای که `"a"` کوچک تر از `"p"` است .
3. دوباره مانند مثال قبل در مقایسه لغت نامه ای حرف اول `"2"` بزرگ تر از حرف اول عبارت دیگر `"1"` است .
4. ارزش های `null` و `undefined` تنها برابر یکدیگرند .
5. برابری سختگیرانه, سختگیرانه است. به دلیل تفاوت در نوع داده پاسخ false است .
6. مانند مثال شماره `(4)` ، `null` تنها برابر `undefined` است .
7. برابری سختگیرانه برای دو داده از دو نوع متفاوت
javascript-translate-bot added changes requested and removed review needed labels Mar 28, 2021

javascript-translate-bot commented Mar 28, 2021



Copy link Copy Markdown

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

fix some mistakes da4b339

emadpoursina commented Mar 30, 2021



Copy link Copy Markdown
Contributor

Author

/done

javascript-translate-bot added review needed and removed changes requested labels Mar 30, 2021 javascript-translate-bot requested a review from a team March 30, 2021 03:19 mahdyar approved these changes Mar 30, 2021
View reviewed changes
javascript-translate-bot added needs +1 and removed review needed labels Mar 30, 2021 mahdyar merged commit 457ca0b into javascript-tutorial : master Mar 30, 2021 javascript-translate-bot mentioned this pull request Mar 30, 2021 Persian (Farsi) Translation Progress #1 Open

javascript-translate-bot commented Mar 30, 2021



Copy link Copy Markdown

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

needs +1

3 participants