Conversation
Contributor
GasimGasimzada
commented
Feb 14, 2020
- Introduction
- "use strict"
- Browser Console
- Always "use strict"
Contributor
Author
|
[WIP] (Work in Progress) in the header means that I am still working on it. I suggest that you review these changes after I remove that "tag." EDIT: It is ready to be reviewed |
ziyaddin
reviewed
Feb 18, 2020
| # "use strict" modern rejimi | ||
|
|
||
| Uzun zaman JavaScript heç bir uyğunluq olmadan inkişaf etdi. Dilə yeni xüsusiyyətlər əlavə olunur, köhnə xüsusiyyətlər isə dəyişmirdi. | ||
| Uzun zaman JavaScript heç bir uyğunluq problemi olmadan inkişaf etdirdi. Dilə yeni xüsusiyyətlər əlavə olunur, köhnə xüsusiyyətlər isə dəyişmirdi. |
ziyaddin
reviewed
Feb 18, 2020
| Bunun mövcud kodu sındırmaması faydası var idi. Lakin, bu, JavaScript yaradıcıları tərəfindən verilən hər bir mükəmməl olmayan qərarın dildə ömürlük qalmasına səbəb olurdu. | ||
|
|
||
| 2009-cu ildə ECMAScript 5 (ES5) dərc olunana kimi bu problem aktual idi. Bu versiyada dilə yeni xüsusiyyətlər əlavə olunmaqdan əlavə, bəzi mövcud xüsusiyyətlər də dəyişdirildi. Köhnə kodun işləməsi üçün bu dəyişikliklərin çoxu standart formada söndürülüb. Bu xüsusiyyətləri aktivləşdirmək üçün `"use strict"` xüsusi direktivini əlavə etmək lazımdır. | ||
| 2009-cu ildə ECMAScript 5 (ES5) dərc olunana kimi bu problem aktual idi. Lakin, bu versiyadan başlayaraq dilə yeni xüsusiyyətlər əlavə olunmaqdan əlavə, bəzi mövcud xüsusiyyətlər də dəyişdirildi. Köhnə kodun işləməsi üçün bu dəyişikliklərin çoxu standart rejimində söndürülüb. Bu xüsusiyyətləri aktivləşdirmək üçün `"use strict"` xüsusi direktivini əlavə etmək lazımdır. |
| ```js no-strict | ||
| alert("some code"); | ||
| // "use strict" below is ignored--it must be at the top | ||
| alert("bəzi kod"); |
| ``` | ||
|
|
||
| Only comments may appear above `"use strict"`. | ||
| `"use strict"`-dən öncə yalnız kommentlər əlavə oluna bilər. |
There was a problem hiding this comment.
öncə yalnız "şəhrlər" əlavə oluna bilər
| ## Brauzer konsolu | ||
|
|
||
| For the future, when you use a browser console to test features, please note that it doesn't `use strict` by default. | ||
| Gələcəkdə, xüsusiyyətləri yoxlamaq üçün brauzer konsolundan istifadə etikdə nəzərə alın ki, `use strict` direktivini əl ilə aktivləşdirmək lazımdır. |
There was a problem hiding this comment.
istifadə "etdikdə" nəzərə alın ki,
| Bu, Firefox və Chrome daxil olmaqla əksər brauzerlərdə işləyir. | ||
|
|
||
| If it doesn't, the most reliable way to ensure `use strict` would be to input the code into console like this: | ||
| Əgər brauzer konsolunda birdən çox sətir ələvə etmək mümkün deyilsə, `use strict` ifadəsinin işləməsindən əmin olmaq üçün konsola aşağıdakı formalı kodu bilərsiniz: |
There was a problem hiding this comment.
ifadəsinin işləməsindən əmin olmaq üçün konsola aşağıdakı formalı kodu " daxil edə" bilərsiniz:
| ## "use strict"-dən həmişə istifadə edin | ||
|
|
||
| We have yet to cover the differences between strict mode and the "default" mode. | ||
| Biz, hələ ki, strikt və "standart" rejiminin fərqlərindən danışmamışıq. |
There was a problem hiding this comment.
Biz hələki - you do not use a comma
| Biz, hələ ki, strikt və "standart" rejiminin fərqlərindən danışmamışıq. | ||
|
|
||
| In the next chapters, as we learn language features, we'll note the differences between the strict and default modes. Luckily, there aren't many and they actually make our lives better. | ||
| Gələcək səhifələrdə dilin xüsusiyyətlərindən danışdığımız zaman strikt və standart rejimlərinin fərqlərini qeyd edəcəyik. Xoşbəxtlikdən, bu fərqlər çox deyil və olan fərqlər birim işimizi rahatlaşdırır. |
There was a problem hiding this comment.
"Xoşbəxtlikdən (without comma)" bu fərqlər çox deyil və olan fərqlər "bizim" işimizi rahatlaşdırır.
Member
|
I have already completed the translation (#203), I am closing this PR. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.