GitBook: [master] one page and 2 assets modified

This commit is contained in:
CPol 2021-07-02 13:30:12 +00:00 committed by gitbook-bot
parent 98e17f8d22
commit 6d5dc7f0f1
No known key found for this signature in database
GPG Key ID: 07D2180C7B12D0FF
3 changed files with 10 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

View File

@ -1032,6 +1032,16 @@ Find some [**tools for XSS here**](xss-tools.md)**.**
## Other JS tricks
### "--" Assignment
The decrement operator `--` is also an asignment. This operator takes a value and then decrements it by one. If that value is not a number, it will be set to `NaN`. This can be used to **remove the content of variables from the environment**.
![](../../.gitbook/assets/image%20%28556%29.png)
![](../../.gitbook/assets/image%20%28555%29.png)
### Arrow functions
Arrow functions allow you to generate functions in a sigle line more easily \(if you understand them\)