From 4ddeac4a0d92718a0fca14aa8305ace5b5b1880a Mon Sep 17 00:00:00 2001 From: Miodec Date: Thu, 14 Jan 2021 17:33:39 +0000 Subject: [PATCH] added a javascript quote --- static/quotes/code_javascript.json | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 static/quotes/code_javascript.json diff --git a/static/quotes/code_javascript.json b/static/quotes/code_javascript.json new file mode 100644 index 000000000..4db7a5825 --- /dev/null +++ b/static/quotes/code_javascript.json @@ -0,0 +1,17 @@ +{ + "language": "code_javascript", + "groups": [ + [0, 100], + [101, 300], + [301, 600], + [601, 9999] + ], + "quotes": [ + { + "text": "//a function that generates random gibberish at random length\n\nexport function getGibberish() {\n\tlet randLen = Math.floor(Math.random() * 7) + 1;\n\tlet ret = \"\";\n\tfor (let i = 0; i < randLen; i++) {\n\t\tret += String.fromCharCode(97 + Math.floor(Math.random() * 26));\n\t}\n\treturn ret;\n}", + "source": "Monkeytype Sourcecode", + "id": 1, + "length": 64 + } + ] +}