From aeb0d4f887a0c18c36b59acc7b5df08e62020c50 Mon Sep 17 00:00:00 2001 From: Dimitar Trendafilov Date: Sun, 11 Oct 2020 21:32:48 +0300 Subject: Removed old homeworks --- homework/81459/js2html/testfile.js | 35 ----------------------------------- 1 file changed, 35 deletions(-) delete mode 100644 homework/81459/js2html/testfile.js (limited to 'homework/81459/js2html/testfile.js') diff --git a/homework/81459/js2html/testfile.js b/homework/81459/js2html/testfile.js deleted file mode 100644 index 0097012..0000000 --- a/homework/81459/js2html/testfile.js +++ /dev/null @@ -1,35 +0,0 @@ -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()); - } -})(); - - -- cgit v1.3.1-26-gb76a