Website Summary Files Commits Branches @commit @diff @stats
path: root / homework / 81459 / js2html / testfile.js
diff options
context:
space:
mode:
Commitaeb0d4f887a0c18c36b59acc7b5df08e62020c50 (patch)
Author
 Dimitar Trendafilov <dimitar@coherent-labs.com>
2020-10-11 21:32:48 +0300
Committer
 Dimitar Trendafilov <dimitar@coherent-labs.com>
2020-10-11 21:33:38 +0300
Filesb6abdc6e1810326b587f2a160f39570f1f568f27 /homework/81459/js2html/testfile.js
IPL-aeb0d4f887a0c18c36b59acc7b5df08e62020c50.tar
IPL-aeb0d4f887a0c18c36b59acc7b5df08e62020c50.tar.gz
IPL-aeb0d4f887a0c18c36b59acc7b5df08e62020c50.zip
Parent154b7cd30f21af1554ca26986ff1643e28857727 (diff)
Removed old homeworks
1 files changed, 0 insertions, 35 deletions
-rw-r--r--homework/81459/js2html/testfile.js35
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());
- }
-})();
-
-