From 88061f9c8e294f4222cdd8a5d908e1e4cb9a6b5c Mon Sep 17 00:00:00 2001 From: InfiniteVoid Date: Sat, 30 May 2026 10:21:40 -0400 Subject: [PATCH 1/2] Add JavaScript quotes --- frontend/static/quotes/code_javascript.json | 24 +++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/frontend/static/quotes/code_javascript.json b/frontend/static/quotes/code_javascript.json index 68845ad636bf..0939dbb20d7b 100644 --- a/frontend/static/quotes/code_javascript.json +++ b/frontend/static/quotes/code_javascript.json @@ -276,6 +276,30 @@ "source": "Monkeytype Sourcecode", "length": 159, "id": 45 + }, + { + "text": "console.log(eval(\"3 + 5\"));", + "source": "MDN", + "length": 27, + "id": 46 + }, + { + "text": "(function () {\n\t\"use strict\";\n\t/* Start of your code */\n\tfunction greetMe(yourName) {\n\t\talert(`Hello ${yourName}`);\n\t}\n\n\tgreetMe(\"World\");\n\t/* End of your code */\n})();", + "source": "MDN", + "length": 194, + "id": 47 + }, + { + "text": "const Früh = \"foobar\";", + "source": "MDN", + "length": 22, + "id": 48 + }, + { + "text": "function die(msg) { process.stderr.write(msg + '\n'); process.exit(2); }", + "source": "Julius Brussee - Caveman", + "length": 24, + "id": 49 } ] } From 5ec72a0e4ea0f59c262718eac0cb5aa7b8ba8ee9 Mon Sep 17 00:00:00 2001 From: InfiniteVoid_ <125770958+Infinite1024Void@users.noreply.github.com> Date: Sat, 30 May 2026 10:40:42 -0400 Subject: [PATCH 2/2] Update JavaScript code snippets in JSON file This (should) fix the failing CI tests --- frontend/static/quotes/code_javascript.json | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/frontend/static/quotes/code_javascript.json b/frontend/static/quotes/code_javascript.json index 0939dbb20d7b..52156defc707 100644 --- a/frontend/static/quotes/code_javascript.json +++ b/frontend/static/quotes/code_javascript.json @@ -277,29 +277,17 @@ "length": 159, "id": 45 }, - { - "text": "console.log(eval(\"3 + 5\"));", - "source": "MDN", - "length": 27, - "id": 46 - }, { "text": "(function () {\n\t\"use strict\";\n\t/* Start of your code */\n\tfunction greetMe(yourName) {\n\t\talert(`Hello ${yourName}`);\n\t}\n\n\tgreetMe(\"World\");\n\t/* End of your code */\n})();", "source": "MDN", - "length": 194, - "id": 47 - }, - { - "text": "const Früh = \"foobar\";", - "source": "MDN", - "length": 22, - "id": 48 + "length": 168, + "id": 46 }, { "text": "function die(msg) { process.stderr.write(msg + '\n'); process.exit(2); }", "source": "Julius Brussee - Caveman", - "length": 24, - "id": 49 + "length": 71, + "id": 47 } ] }