Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Husan/js hoisting #8

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

Husan/js hoisting #8

wants to merge 7 commits into from

Conversation

husan-eshonqulov
Copy link
Contributor

@husan-eshonqulov husan-eshonqulov commented Sep 4, 2021

Iltimos, bu qismda qaysi manbalardan foydalanganingiz haqida yozing (Bahriddin).

Copy link
Contributor

@bahriddin bahriddin left a comment

Choose a reason for hiding this comment

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

Husan, buni tushunishda manda anchagina savollar tug'ilyapti:

  1. Qaysi manbalardan foydalandingiz maqolani yozishda? Shularni menga yozib yuboring.
  2. Nega maqola nomi hoisting bo'lib declarations va Temporal Dead Zone haqida yozib ketgansiz. Agar hoisting'ni tushunish uchun avval bu atamalarni yaxshi tushunib olish kerak bo'lsa, shuni maqola boshida aytib ketganingiz ma'qul.

@husan-eshonqulov
Copy link
Contributor Author

Maqolani yozishdan oldin bir qancha videolar ko'rib chiqdim va hoistingni o'rganishga harakat qildim. Manga yoqqanlari va eng ko'p foydalanganlarim https://www.youtube.com/watch?v=Fnlnw8uY6jo&t=863s , https://www.youtube.com/watch?v=ppMlvGMT2qE&t=9s , https://www.youtube.com/watch?v=cHyydUnsaWI shular.

Copy link
Contributor

@bahriddin bahriddin left a comment

Choose a reason for hiding this comment

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

Husan, bu yerda ancha o'zgarish qilish kerak, chamamda:

  1. Avvalambor, dastur JS'da qanday ishlashini yozishimiz kerak: avval parsing/compiling, keyin execution.
  2. Keyin Temporal Dead Zone'ga nega ehtiyoj borligini tushuntirish kerak: agar bu bo'lmasa, let va const ham var'day undefined chiqarardida.

Va keyin buning tepasida reja bo'lishi kerak hamda kirish qismi yozib: "biz hoistingni tushunishimiz uchun avval JS'da kod qanday bajarilishini ko'rib chiqishimiz kerak" deb tushuntirish berish kerak. Aks holda, o'quvchi sarlavha nimayu, nimadan gap boshlandi deb ikkilanadi.

Va yana: PR descriptionida qaysi manbalardan foydalanganingiz haqida yozib qoldiring bundan buyog'iga.

@husan-eshonqulov
Copy link
Contributor Author

OK

@husan-eshonqulov
Copy link
Contributor Author

husan-eshonqulov commented Oct 7, 2021

Oxirgi commit qilganimda mana bu maqoladan foydalandim

https://developer.mozilla.org/en-US/docs/Glossary/Hoisting

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants