blob: 009701202e43e8c8c7af6aa53315c72049ac9920 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
class Nonsense {
constructor() {
this.arbitraryArray = ['string with no meaning', 42];
}
doesThisMakeSense() {
return false;
}
answer(answer) {
console.log(answer);
}
whatIsTheMeaning() {
return this.arbitraryArray[this.getRandomIndex()]
}
getRandomIndex() {
return Math.floor(Math.random() * 2);
}
}
(function () {
console.log((-~function(){}-~function(){})); // 2, now that's weird
console.log(Array(16).join("lol" - 2) + " Batman!"); // ;)
const nonsense = new Nonsense();
while(nonsense.doesThisMakeSense()) { // No, it doesn't
nonsense.answer(nonsense.whatIsTheMeaning());
}
})();
|