move initial code to config

This commit is contained in:
2022-11-17 02:52:08 +01:00
parent b95a585ce1
commit 1472405c01
2 changed files with 14 additions and 13 deletions

View File

@@ -1,3 +1,15 @@
export const MAX_DATA_SIZE = 1e5;
export const ERROR_MAX_DATA_SIZE = 'Error: Output exceeded maximum size allowed';
export const WELCOME_CODE = `
'Hello World!';
new Array(10).fill(0).map((_, i) => '#'.repeat(i+1));
2n ** 42n;
for (let i = 0; i < 42; ++i) {
console.log(i);
}
`;