Update
This commit is contained in:
parent
a5acdddb82
commit
57c8d33e04
15 changed files with 1717 additions and 1668 deletions
|
@ -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
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue