You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This method actually has two additional arguments specified in [the documentation](mdn:js/String/localeCompare), which allow it to specify the language (by default taken from the environment) and setup additional rules like case sensivity or should `"a"` and `"á"` be treated as the same etc.
551
+
This method actually has two additional arguments specified in [the documentation](mdn:js/String/localeCompare), which allows it to specify the language (by default taken from the environment) and setup additional rules like case sensitivity or should `"a"` and `"á"` be treated as the same etc.
Copy file name to clipboardExpand all lines: 1-js/06-advanced-functions/08-settimeout-setinterval/article.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -325,7 +325,7 @@ Then the next call is scheduled in `(*)` if we're not done yet.
325
325
326
326
Pauses between `count` executions provide just enough "breath" for the JavaScript engine to do something else, to react on other user actions.
327
327
328
-
The notable thing is that both variants: with and without splitting the job by `setInterval` -- are comparable in speed. There's no much difference in the overall counting time.
328
+
The notable thing is that both variants: with and without splitting the job by `setTimeout` -- are comparable in speed. There's no much difference in the overall counting time.
329
329
330
330
To make them closer let's make an improvement.
331
331
@@ -461,4 +461,4 @@ For example, the in-browser timer may slow down for a lot of reasons:
461
461
- The browser tab is in the background mode.
462
462
- The laptop is on battery.
463
463
464
-
All that may decrease the minimal timer resolution (the minimal delay) to 300ms or even 1000ms depending on the browser and settings.
464
+
All that may increase the minimal timer resolution (the minimal delay) to 300ms or even 1000ms depending on the browser and settings.
0 commit comments