This commit is contained in:
Miloslav Ciz 2024-02-13 21:57:06 +01:00
parent a5acdddb82
commit 57c8d33e04
15 changed files with 1717 additions and 1668 deletions

View file

@ -14,13 +14,20 @@ In the past JavaScript was only a **[client](client.md) side** scripting languag
TODO: some more shit
TODO
## JavaScript Fun
Here let be recorded funny code in this glorious language.
**This kills the JavaScript**:
```
"11" + 1 // "111"
"11" - 1 // 10
clear(this);
```
That's right, the above code just make JavaScript commit [suicide](suicide.md) by deleting its whole global thing.
{ Found here: https://codegolf.stackexchange.com/questions/61115/make-your-language-unusable. ~drummyfish }
Here is how to **make your page work only with JavaScript turned off**:
```
@ -68,4 +75,11 @@ function go()
</body>
</html>
```
TODO: some JS nonsense like below
```
"11" + 1 // "111"
"11" - 1 // 10
```