Skip to content

Commit 66fa6e8

Browse files
small fixes
1 parent c35927c commit 66fa6e8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

1-js/05-data-types/03-string/article.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,11 +304,11 @@ let str = "Widget with id";
304304
*!*
305305
if (str.indexOf("Widget") != -1) {
306306
*/!*
307-
alert("We found it"); // works now!
307+
alert("We found it"); // Działa!
308308
}
309309
```
310310

311-
#### Bitowy trik NOT
311+
#### Trik bitowy NOT
312312

313313
Istnieje stara sztuczka z użyciem [bitowego operatora NOT](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Bitwise_NOT) `~`. Konwertuje liczbę na 32-bitową liczbę całkowitą (usuwa część dziesiętną, jeśli istnieje), a następnie odwraca wszystkie bity w reprezentacji binarnej.
314314

0 commit comments

Comments
 (0)