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

Constructor, operator "new" by mahdiHash · Pull Request #98 · javascript-tutorial/fa.javascript.info

Repository navigation

Constructor, operator "new" - #98


Merged
mahdyar merged 10 commits into javascript-tutorial:master from mahdiHash:master Mar 20, 2021
Merged

Constructor, operator "new" #98 mahdyar merged 10 commits into javascript-tutorial:master from mahdiHash:master

Conversation

mahdiHash commented Mar 19, 2021



Copy link Copy Markdown
Contributor

Please review and commit if anything is wrong.
All the files in "Constructor, operator new" are translated.

mahdiHash added 9 commits March 17, 2021 22:52 translate task.md 1af2bd2
Translated task.md.
Please review it and commit if anything is wrong
translate solution.md 3aec6a2
Please review and commit if anything is wrong.
translate task.md 0201627
Please review and commit if anything is wrong.
translate task.md d73f644
Please review and commit if anything is wrong
Translate a part of atricle.md acc32e7
It's not done yet. Just the first part is translated
Translate a part of article.md 337074b
Translated the second part.
Translate a part of article.md d30e918
Translated the third part
Translate aticle.md e6ea075
Translation is done. Please review and commit if anything is wrong.
Remove a line a0b754f
Removed an empty line.
javascript-translate-bot added the review needed label Mar 19, 2021 javascript-translate-bot requested a review from a team March 19, 2021 19:19 javascript-translate-bot mentioned this pull request Mar 19, 2021 Persian (Farsi) Translation Progress #1 Open

CLAassistant commented Mar 19, 2021 · edited Loading



Copy link Copy Markdown


All committers have signed the CLA.

mahdyar requested changes Mar 19, 2021
View reviewed changes
Comment thread 1-js/04-object-basics/06-constructor-new/article.md
Outdated
```js
let user = new User; // <-- no parentheses
// same as
let user = new User; // <-- بدون پرانتر
Comment thread 1-js/04-object-basics/06-constructor-new/article.md
Outdated
@@ -1,17 +1,17 @@
# Constructor, operator "new"
# سازنده ، اپراتور "new"
Comment thread 1-js/04-object-basics/06-constructor-new/article.md
Outdated
```

Now if we want to create other users, we can call `new User("Ann")` , `new User("Alice")` and so on. Much shorter than using literals every time, and also easy to read .
حالا اگر ما بخواهیم که user های دیگری بسازیم، می توانیم `new User("Ann")` ، `new User("Alice")` و ... را صدا بزنیم. این کار بسیار کوتاه تر از استفاده همیشگی از literal ها است، و همچنین برای خواندن آسان است .
Comment thread 1-js/04-object-basics/06-constructor-new/article.md
Outdated

```smart header=" Objects, we'll be back !"
In this chapter we only cover the basics about objects and constructors. They are essential for learning more about data types and functions in the next chapters .
```smart header=" شیءها ، ما بر می گردیم !"
Comment thread 1-js/04-object-basics/06-constructor-new/article.md
Outdated
@@ -1,17 +1,17 @@
# Constructor, operator "new"
# سازنده ، اپراتور "new"
Comment thread 1-js/04-object-basics/06-constructor-new/article.md
Outdated
// maybe complex logic and statements
// local variables etc
// ... کد های دیگر برای ساخت user
// شاید شامل منطق و دستورالعمل عجیبی باشد
Comment thread 1-js/04-object-basics/06-constructor-new/article.md
Outdated
```

Omitting parentheses here is not considered a "good style", but the syntax is permitted by specification .
اینجا پنهان کردن پرانتزها به عنوان یک "سبک خوب" فرض نمی شود، اما سینتکس طبق خصوصیات مجاز است .
javascript-translate-bot added changes requested and removed review needed labels Mar 19, 2021

javascript-translate-bot commented Mar 19, 2021



Copy link Copy Markdown

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

Update article.md d9c3779
All the mentioned problems are solved.
Also I translated line 44.

mahdiHash commented Mar 20, 2021



Copy link Copy Markdown
Contributor

Author

/done

javascript-translate-bot added review needed and removed changes requested labels Mar 20, 2021 javascript-translate-bot requested a review from a team March 20, 2021 08:42 javascript-translate-bot removed the review needed label Mar 20, 2021 mahdyar approved these changes Mar 20, 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 .

Thank you, @mahdiHashemi14!

javascript-translate-bot added the needs +1 label Mar 20, 2021 mahdyar merged commit 3e2c03d into javascript-tutorial : master Mar 20, 2021

javascript-translate-bot commented Mar 20, 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

4 participants