{ "language": "javascript", "category": "comprehensive", "training_data": [ { "input": "simple function (v0)", "output": "function add(a, b) { return a + b; }", "tags": [ "basics", "beginner" ] }, { "input": "string methods (v1)", "output": "const str = 'hello'; str.toUpperCase(); str.includes('ell'); str.split('');", "tags": [ "basics", "beginner" ] }, { "input": "object destructure (v2)", "output": "const { name, age } = { name: 'Alice', age: 25 };", "tags": [ "basics", "beginner" ] }, { "input": "array creation (v3)", "output": "const arr = [1, 2, 3, 4, 5];", "tags": [ "basics", "beginner" ] }, { "input": "object destructure (v4)", "output": "const { name, age } = { name: 'Alice', age: 25 };", "tags": [ "basics", "beginner" ] }, { "input": "object destructure (v5)", "output": "const { name, age } = { name: 'Alice', age: 25 };", "tags": [ "basics", "beginner" ] }, { "input": "object creation (v6)", "output": "const obj = { name: 'John', age: 30 };", "tags": [ "basics", "beginner" ] }, { "input": "object access (v7)", "output": "const person = { name: 'Bob' }; console.log(person.name); console.log(person['name']);", "tags": [ "basics", "beginner" ] }, { "input": "template string (v8)", "output": "const name = 'Alice'; console.log(`Hello ${name}`);", "tags": [ "basics", "beginner" ] }, { "input": "object destructure (v9)", "output": "const { name, age } = { name: 'Alice', age: 25 };", "tags": [ "basics", "beginner" ] }, { "input": "object creation (v10)", "output": "const obj = { name: 'John', age: 30 };", "tags": [ "basics", "beginner" ] }, { "input": "template string (v11)", "output": "const name = 'Alice'; console.log(`Hello ${name}`);", "tags": [ "basics", "beginner" ] }, { "input": "for loop (v12)", "output": "for (let i = 0; i < 10; i++) { console.log(i); }", "tags": [ "basics", "beginner" ] }, { "input": "arrow function (v13)", "output": "const multiply = (a, b) => a * b;", "tags": [ "basics", "beginner" ] }, { "input": "object access (v14)", "output": "const person = { name: 'Bob' }; console.log(person.name); console.log(person['name']);", "tags": [ "basics", "beginner" ] }, { "input": "string methods (v15)", "output": "const str = 'hello'; str.toUpperCase(); str.includes('ell'); str.split('');", "tags": [ "basics", "beginner" ] }, { "input": "hello console (v16)", "output": "console.log('Hello, World!');", "tags": [ "basics", "beginner" ] }, { "input": "arrow function (v17)", "output": "const multiply = (a, b) => a * b;", "tags": [ "basics", "beginner" ] }, { "input": "array destructure (v18)", "output": "const [a, b, c] = [1, 2, 3];", "tags": [ "basics", "beginner" ] }, { "input": "array creation (v19)", "output": "const arr = [1, 2, 3, 4, 5];", "tags": [ "basics", "beginner" ] }, { "input": "variable declaration (v20)", "output": "const x = 5;\nlet y = 10;\nvar z = 15;", "tags": [ "basics", "beginner" ] }, { "input": "arrow function (v21)", "output": "const multiply = (a, b) => a * b;", "tags": [ "basics", "beginner" ] }, { "input": "for loop (v22)", "output": "for (let i = 0; i < 10; i++) { console.log(i); }", "tags": [ "basics", "beginner" ] }, { "input": "array methods (v23)", "output": "arr.map(x => x * 2); arr.filter(x => x > 2); arr.forEach(x => console.log(x));", "tags": [ "basics", "beginner" ] }, { "input": "array creation (v24)", "output": "const arr = [1, 2, 3, 4, 5];", "tags": [ "basics", "beginner" ] }, { "input": "hello console (v25)", "output": "console.log('Hello, World!');", "tags": [ "basics", "beginner" ] }, { "input": "template string (v26)", "output": "const name = 'Alice'; console.log(`Hello ${name}`);", "tags": [ "basics", "beginner" ] }, { "input": "for loop (v27)", "output": "for (let i = 0; i < 10; i++) { console.log(i); }", "tags": [ "basics", "beginner" ] }, { "input": "template string (v28)", "output": "const name = 'Alice'; console.log(`Hello ${name}`);", "tags": [ "basics", "beginner" ] }, { "input": "object access (v29)", "output": "const person = { name: 'Bob' }; console.log(person.name); console.log(person['name']);", "tags": [ "basics", "beginner" ] }, { "input": "variable declaration (v30)", "output": "const x = 5;\nlet y = 10;\nvar z = 15;", "tags": [ "basics", "beginner" ] }, { "input": "hello console (v31)", "output": "console.log('Hello, World!');", "tags": [ "basics", "beginner" ] }, { "input": "for loop (v32)", "output": "for (let i = 0; i < 10; i++) { console.log(i); }", "tags": [ "basics", "beginner" ] }, { "input": "simple function (v33)", "output": "function add(a, b) { return a + b; }", "tags": [ "basics", "beginner" ] }, { "input": "array creation (v34)", "output": "const arr = [1, 2, 3, 4, 5];", "tags": [ "basics", "beginner" ] }, { "input": "template string (v35)", "output": "const name = 'Alice'; console.log(`Hello ${name}`);", "tags": [ "basics", "beginner" ] }, { "input": "hello console (v36)", "output": "console.log('Hello, World!');", "tags": [ "basics", "beginner" ] }, { "input": "for loop (v37)", "output": "for (let i = 0; i < 10; i++) { console.log(i); }", "tags": [ "basics", "beginner" ] }, { "input": "array methods (v38)", "output": "arr.map(x => x * 2); arr.filter(x => x > 2); arr.forEach(x => console.log(x));", "tags": [ "basics", "beginner" ] }, { "input": "arrow function (v39)", "output": "const multiply = (a, b) => a * b;", "tags": [ "basics", "beginner" ] }, { "input": "object destructure (v40)", "output": "const { name, age } = { name: 'Alice', age: 25 };", "tags": [ "basics", "beginner" ] }, { "input": "simple function (v41)", "output": "function add(a, b) { return a + b; }", "tags": [ "basics", "beginner" ] }, { "input": "hello console (v42)", "output": "console.log('Hello, World!');", "tags": [ "basics", "beginner" ] }, { "input": "for loop (v43)", "output": "for (let i = 0; i < 10; i++) { console.log(i); }", "tags": [ "basics", "beginner" ] }, { "input": "array methods (v44)", "output": "arr.map(x => x * 2); arr.filter(x => x > 2); arr.forEach(x => console.log(x));", "tags": [ "basics", "beginner" ] }, { "input": "simple function (v45)", "output": "function add(a, b) { return a + b; }", "tags": [ "basics", "beginner" ] }, { "input": "for loop (v46)", "output": "for (let i = 0; i < 10; i++) { console.log(i); }", "tags": [ "basics", "beginner" ] }, { "input": "for loop (v47)", "output": "for (let i = 0; i < 10; i++) { console.log(i); }", "tags": [ "basics", "beginner" ] }, { "input": "simple function (v48)", "output": "function add(a, b) { return a + b; }", "tags": [ "basics", "beginner" ] }, { "input": "object destructure (v49)", "output": "const { name, age } = { name: 'Alice', age: 25 };", "tags": [ "basics", "beginner" ] }, { "input": "for loop (v50)", "output": "for (let i = 0; i < 10; i++) { console.log(i); }", "tags": [ "basics", "beginner" ] }, { "input": "variable declaration (v51)", "output": "const x = 5;\nlet y = 10;\nvar z = 15;", "tags": [ "basics", "beginner" ] }, { "input": "object creation (v52)", "output": "const obj = { name: 'John', age: 30 };", "tags": [ "basics", "beginner" ] }, { "input": "object access (v53)", "output": "const person = { name: 'Bob' }; console.log(person.name); console.log(person['name']);", "tags": [ "basics", "beginner" ] }, { "input": "arrow function (v54)", "output": "const multiply = (a, b) => a * b;", "tags": [ "basics", "beginner" ] }, { "input": "simple function (v55)", "output": "function add(a, b) { return a + b; }", "tags": [ "basics", "beginner" ] }, { "input": "array destructure (v56)", "output": "const [a, b, c] = [1, 2, 3];", "tags": [ "basics", "beginner" ] }, { "input": "array destructure (v57)", "output": "const [a, b, c] = [1, 2, 3];", "tags": [ "basics", "beginner" ] }, { "input": "while loop (v58)", "output": "let i = 0; while (i < 5) { console.log(i); i++; }", "tags": [ "basics", "beginner" ] }, { "input": "object creation (v59)", "output": "const obj = { name: 'John', age: 30 };", "tags": [ "basics", "beginner" ] }, { "input": "for loop (v60)", "output": "for (let i = 0; i < 10; i++) { console.log(i); }", "tags": [ "basics", "beginner" ] }, { "input": "array creation (v61)", "output": "const arr = [1, 2, 3, 4, 5];", "tags": [ "basics", "beginner" ] }, { "input": "hello console (v62)", "output": "console.log('Hello, World!');", "tags": [ "basics", "beginner" ] }, { "input": "template string (v63)", "output": "const name = 'Alice'; console.log(`Hello ${name}`);", "tags": [ "basics", "beginner" ] }, { "input": "object destructure (v64)", "output": "const { name, age } = { name: 'Alice', age: 25 };", "tags": [ "basics", "beginner" ] }, { "input": "arrow function (v65)", "output": "const multiply = (a, b) => a * b;", "tags": [ "basics", "beginner" ] }, { "input": "while loop (v66)", "output": "let i = 0; while (i < 5) { console.log(i); i++; }", "tags": [ "basics", "beginner" ] }, { "input": "simple function (v67)", "output": "function add(a, b) { return a + b; }", "tags": [ "basics", "beginner" ] }, { "input": "object creation (v68)", "output": "const obj = { name: 'John', age: 30 };", "tags": [ "basics", "beginner" ] }, { "input": "object creation (v69)", "output": "const obj = { name: 'John', age: 30 };", "tags": [ "basics", "beginner" ] }, { "input": "if statement (v70)", "output": "if (x > 5) { console.log('Greater'); } else { console.log('Lesser'); }", "tags": [ "basics", "beginner" ] }, { "input": "array creation (v71)", "output": "const arr = [1, 2, 3, 4, 5];", "tags": [ "basics", "beginner" ] }, { "input": "object access (v72)", "output": "const person = { name: 'Bob' }; console.log(person.name); console.log(person['name']);", "tags": [ "basics", "beginner" ] }, { "input": "arrow function (v73)", "output": "const multiply = (a, b) => a * b;", "tags": [ "basics", "beginner" ] }, { "input": "while loop (v74)", "output": "let i = 0; while (i < 5) { console.log(i); i++; }", "tags": [ "basics", "beginner" ] }, { "input": "template string (v75)", "output": "const name = 'Alice'; console.log(`Hello ${name}`);", "tags": [ "basics", "beginner" ] }, { "input": "hello console (v76)", "output": "console.log('Hello, World!');", "tags": [ "basics", "beginner" ] }, { "input": "variable declaration (v77)", "output": "const x = 5;\nlet y = 10;\nvar z = 15;", "tags": [ "basics", "beginner" ] }, { "input": "array methods (v78)", "output": "arr.map(x => x * 2); arr.filter(x => x > 2); arr.forEach(x => console.log(x));", "tags": [ "basics", "beginner" ] }, { "input": "for loop (v79)", "output": "for (let i = 0; i < 10; i++) { console.log(i); }", "tags": [ "basics", "beginner" ] }, { "input": "array destructure (v80)", "output": "const [a, b, c] = [1, 2, 3];", "tags": [ "basics", "beginner" ] }, { "input": "string methods (v81)", "output": "const str = 'hello'; str.toUpperCase(); str.includes('ell'); str.split('');", "tags": [ "basics", "beginner" ] }, { "input": "object creation (v82)", "output": "const obj = { name: 'John', age: 30 };", "tags": [ "basics", "beginner" ] }, { "input": "while loop (v83)", "output": "let i = 0; while (i < 5) { console.log(i); i++; }", "tags": [ "basics", "beginner" ] }, { "input": "hello console (v84)", "output": "console.log('Hello, World!');", "tags": [ "basics", "beginner" ] }, { "input": "object access (v85)", "output": "const person = { name: 'Bob' }; console.log(person.name); console.log(person['name']);", "tags": [ "basics", "beginner" ] }, { "input": "array creation (v86)", "output": "const arr = [1, 2, 3, 4, 5];", "tags": [ "basics", "beginner" ] }, { "input": "template string (v87)", "output": "const name = 'Alice'; console.log(`Hello ${name}`);", "tags": [ "basics", "beginner" ] }, { "input": "array methods (v88)", "output": "arr.map(x => x * 2); arr.filter(x => x > 2); arr.forEach(x => console.log(x));", "tags": [ "basics", "beginner" ] }, { "input": "object creation (v89)", "output": "const obj = { name: 'John', age: 30 };", "tags": [ "basics", "beginner" ] }, { "input": "if statement (v90)", "output": "if (x > 5) { console.log('Greater'); } else { console.log('Lesser'); }", "tags": [ "basics", "beginner" ] }, { "input": "hello console (v91)", "output": "console.log('Hello, World!');", "tags": [ "basics", "beginner" ] }, { "input": "variable declaration (v92)", "output": "const x = 5;\nlet y = 10;\nvar z = 15;", "tags": [ "basics", "beginner" ] }, { "input": "variable declaration (v93)", "output": "const x = 5;\nlet y = 10;\nvar z = 15;", "tags": [ "basics", "beginner" ] }, { "input": "object access (v94)", "output": "const person = { name: 'Bob' }; console.log(person.name); console.log(person['name']);", "tags": [ "basics", "beginner" ] }, { "input": "array destructure (v95)", "output": "const [a, b, c] = [1, 2, 3];", "tags": [ "basics", "beginner" ] }, { "input": "if statement (v96)", "output": "if (x > 5) { console.log('Greater'); } else { console.log('Lesser'); }", "tags": [ "basics", "beginner" ] }, { "input": "string methods (v97)", "output": "const str = 'hello'; str.toUpperCase(); str.includes('ell'); str.split('');", "tags": [ "basics", "beginner" ] }, { "input": "if statement (v98)", "output": "if (x > 5) { console.log('Greater'); } else { console.log('Lesser'); }", "tags": [ "basics", "beginner" ] }, { "input": "array methods (v99)", "output": "arr.map(x => x * 2); arr.filter(x => x > 2); arr.forEach(x => console.log(x));", "tags": [ "basics", "beginner" ] }, { "input": "string methods (v100)", "output": "const str = 'hello'; str.toUpperCase(); str.includes('ell'); str.split('');", "tags": [ "basics", "beginner" ] }, { "input": "while loop (v101)", "output": "let i = 0; while (i < 5) { console.log(i); i++; }", "tags": [ "basics", "beginner" ] }, { "input": "object access (v102)", "output": "const person = { name: 'Bob' }; console.log(person.name); console.log(person['name']);", "tags": [ "basics", "beginner" ] }, { "input": "object access (v103)", "output": "const person = { name: 'Bob' }; console.log(person.name); console.log(person['name']);", "tags": [ "basics", "beginner" ] }, { "input": "if statement (v104)", "output": "if (x > 5) { console.log('Greater'); } else { console.log('Lesser'); }", "tags": [ "basics", "beginner" ] }, { "input": "template string (v105)", "output": "const name = 'Alice'; console.log(`Hello ${name}`);", "tags": [ "basics", "beginner" ] }, { "input": "hello console (v106)", "output": "console.log('Hello, World!');", "tags": [ "basics", "beginner" ] }, { "input": "object destructure (v107)", "output": "const { name, age } = { name: 'Alice', age: 25 };", "tags": [ "basics", "beginner" ] }, { "input": "string methods (v108)", "output": "const str = 'hello'; str.toUpperCase(); str.includes('ell'); str.split('');", "tags": [ "basics", "beginner" ] }, { "input": "object destructure (v109)", "output": "const { name, age } = { name: 'Alice', age: 25 };", "tags": [ "basics", "beginner" ] }, { "input": "object creation (v110)", "output": "const obj = { name: 'John', age: 30 };", "tags": [ "basics", "beginner" ] }, { "input": "for loop (v111)", "output": "for (let i = 0; i < 10; i++) { console.log(i); }", "tags": [ "basics", "beginner" ] }, { "input": "while loop (v112)", "output": "let i = 0; while (i < 5) { console.log(i); i++; }", "tags": [ "basics", "beginner" ] }, { "input": "object access (v113)", "output": "const person = { name: 'Bob' }; console.log(person.name); console.log(person['name']);", "tags": [ "basics", "beginner" ] }, { "input": "template string (v114)", "output": "const name = 'Alice'; console.log(`Hello ${name}`);", "tags": [ "basics", "beginner" ] }, { "input": "template string (v115)", "output": "const name = 'Alice'; console.log(`Hello ${name}`);", "tags": [ "basics", "beginner" ] }, { "input": "template string (v116)", "output": "const name = 'Alice'; console.log(`Hello ${name}`);", "tags": [ "basics", "beginner" ] }, { "input": "template string (v117)", "output": "const name = 'Alice'; console.log(`Hello ${name}`);", "tags": [ "basics", "beginner" ] }, { "input": "hello console (v118)", "output": "console.log('Hello, World!');", "tags": [ "basics", "beginner" ] }, { "input": "array creation (v119)", "output": "const arr = [1, 2, 3, 4, 5];", "tags": [ "basics", "beginner" ] }, { "input": "array destructure (v120)", "output": "const [a, b, c] = [1, 2, 3];", "tags": [ "basics", "beginner" ] }, { "input": "arrow function (v121)", "output": "const multiply = (a, b) => a * b;", "tags": [ "basics", "beginner" ] }, { "input": "string methods (v122)", "output": "const str = 'hello'; str.toUpperCase(); str.includes('ell'); str.split('');", "tags": [ "basics", "beginner" ] }, { "input": "array destructure (v123)", "output": "const [a, b, c] = [1, 2, 3];", "tags": [ "basics", "beginner" ] }, { "input": "for loop (v124)", "output": "for (let i = 0; i < 10; i++) { console.log(i); }", "tags": [ "basics", "beginner" ] }, { "input": "hello console (v125)", "output": "console.log('Hello, World!');", "tags": [ "basics", "beginner" ] }, { "input": "object destructure (v126)", "output": "const { name, age } = { name: 'Alice', age: 25 };", "tags": [ "basics", "beginner" ] }, { "input": "hello console (v127)", "output": "console.log('Hello, World!');", "tags": [ "basics", "beginner" ] }, { "input": "arrow function (v128)", "output": "const multiply = (a, b) => a * b;", "tags": [ "basics", "beginner" ] }, { "input": "hello console (v129)", "output": "console.log('Hello, World!');", "tags": [ "basics", "beginner" ] }, { "input": "if statement (v130)", "output": "if (x > 5) { console.log('Greater'); } else { console.log('Lesser'); }", "tags": [ "basics", "beginner" ] }, { "input": "hello console (v131)", "output": "console.log('Hello, World!');", "tags": [ "basics", "beginner" ] }, { "input": "template string (v132)", "output": "const name = 'Alice'; console.log(`Hello ${name}`);", "tags": [ "basics", "beginner" ] }, { "input": "arrow function (v133)", "output": "const multiply = (a, b) => a * b;", "tags": [ "basics", "beginner" ] }, { "input": "object access (v134)", "output": "const person = { name: 'Bob' }; console.log(person.name); console.log(person['name']);", "tags": [ "basics", "beginner" ] }, { "input": "hello console (v135)", "output": "console.log('Hello, World!');", "tags": [ "basics", "beginner" ] }, { "input": "while loop (v136)", "output": "let i = 0; while (i < 5) { console.log(i); i++; }", "tags": [ "basics", "beginner" ] }, { "input": "simple function (v137)", "output": "function add(a, b) { return a + b; }", "tags": [ "basics", "beginner" ] }, { "input": "variable declaration (v138)", "output": "const x = 5;\nlet y = 10;\nvar z = 15;", "tags": [ "basics", "beginner" ] }, { "input": "object access (v139)", "output": "const person = { name: 'Bob' }; console.log(person.name); console.log(person['name']);", "tags": [ "basics", "beginner" ] }, { "input": "if statement (v140)", "output": "if (x > 5) { console.log('Greater'); } else { console.log('Lesser'); }", "tags": [ "basics", "beginner" ] }, { "input": "array methods (v141)", "output": "arr.map(x => x * 2); arr.filter(x => x > 2); arr.forEach(x => console.log(x));", "tags": [ "basics", "beginner" ] }, { "input": "object destructure (v142)", "output": "const { name, age } = { name: 'Alice', age: 25 };", "tags": [ "basics", "beginner" ] }, { "input": "array creation (v143)", "output": "const arr = [1, 2, 3, 4, 5];", "tags": [ "basics", "beginner" ] }, { "input": "variable declaration (v144)", "output": "const x = 5;\nlet y = 10;\nvar z = 15;", "tags": [ "basics", "beginner" ] }, { "input": "simple function (v145)", "output": "function add(a, b) { return a + b; }", "tags": [ "basics", "beginner" ] }, { "input": "template string (v146)", "output": "const name = 'Alice'; console.log(`Hello ${name}`);", "tags": [ "basics", "beginner" ] }, { "input": "object creation (v147)", "output": "const obj = { name: 'John', age: 30 };", "tags": [ "basics", "beginner" ] }, { "input": "object creation (v148)", "output": "const obj = { name: 'John', age: 30 };", "tags": [ "basics", "beginner" ] }, { "input": "simple function (v149)", "output": "function add(a, b) { return a + b; }", "tags": [ "basics", "beginner" ] }, { "input": "object destructure (v150)", "output": "const { name, age } = { name: 'Alice', age: 25 };", "tags": [ "basics", "beginner" ] }, { "input": "arrow function (v151)", "output": "const multiply = (a, b) => a * b;", "tags": [ "basics", "beginner" ] }, { "input": "simple function (v152)", "output": "function add(a, b) { return a + b; }", "tags": [ "basics", "beginner" ] }, { "input": "for loop (v153)", "output": "for (let i = 0; i < 10; i++) { console.log(i); }", "tags": [ "basics", "beginner" ] }, { "input": "array methods (v154)", "output": "arr.map(x => x * 2); arr.filter(x => x > 2); arr.forEach(x => console.log(x));", "tags": [ "basics", "beginner" ] }, { "input": "simple function (v155)", "output": "function add(a, b) { return a + b; }", "tags": [ "basics", "beginner" ] }, { "input": "for loop (v156)", "output": "for (let i = 0; i < 10; i++) { console.log(i); }", "tags": [ "basics", "beginner" ] }, { "input": "simple function (v157)", "output": "function add(a, b) { return a + b; }", "tags": [ "basics", "beginner" ] }, { "input": "if statement (v158)", "output": "if (x > 5) { console.log('Greater'); } else { console.log('Lesser'); }", "tags": [ "basics", "beginner" ] }, { "input": "hello console (v159)", "output": "console.log('Hello, World!');", "tags": [ "basics", "beginner" ] }, { "input": "while loop (v160)", "output": "let i = 0; while (i < 5) { console.log(i); i++; }", "tags": [ "basics", "beginner" ] }, { "input": "while loop (v161)", "output": "let i = 0; while (i < 5) { console.log(i); i++; }", "tags": [ "basics", "beginner" ] }, { "input": "array creation (v162)", "output": "const arr = [1, 2, 3, 4, 5];", "tags": [ "basics", "beginner" ] }, { "input": "array creation (v163)", "output": "const arr = [1, 2, 3, 4, 5];", "tags": [ "basics", "beginner" ] }, { "input": "if statement (v164)", "output": "if (x > 5) { console.log('Greater'); } else { console.log('Lesser'); }", "tags": [ "basics", "beginner" ] }, { "input": "while loop (v165)", "output": "let i = 0; while (i < 5) { console.log(i); i++; }", "tags": [ "basics", "beginner" ] }, { "input": "array destructure (v166)", "output": "const [a, b, c] = [1, 2, 3];", "tags": [ "basics", "beginner" ] }, { "input": "object destructure (v167)", "output": "const { name, age } = { name: 'Alice', age: 25 };", "tags": [ "basics", "beginner" ] }, { "input": "simple function (v168)", "output": "function add(a, b) { return a + b; }", "tags": [ "basics", "beginner" ] }, { "input": "object creation (v169)", "output": "const obj = { name: 'John', age: 30 };", "tags": [ "basics", "beginner" ] }, { "input": "array creation (v170)", "output": "const arr = [1, 2, 3, 4, 5];", "tags": [ "basics", "beginner" ] }, { "input": "if statement (v171)", "output": "if (x > 5) { console.log('Greater'); } else { console.log('Lesser'); }", "tags": [ "basics", "beginner" ] }, { "input": "array destructure (v172)", "output": "const [a, b, c] = [1, 2, 3];", "tags": [ "basics", "beginner" ] }, { "input": "simple function (v173)", "output": "function add(a, b) { return a + b; }", "tags": [ "basics", "beginner" ] }, { "input": "object creation (v174)", "output": "const obj = { name: 'John', age: 30 };", "tags": [ "basics", "beginner" ] }, { "input": "for loop (v175)", "output": "for (let i = 0; i < 10; i++) { console.log(i); }", "tags": [ "basics", "beginner" ] }, { "input": "array methods (v176)", "output": "arr.map(x => x * 2); arr.filter(x => x > 2); arr.forEach(x => console.log(x));", "tags": [ "basics", "beginner" ] }, { "input": "variable declaration (v177)", "output": "const x = 5;\nlet y = 10;\nvar z = 15;", "tags": [ "basics", "beginner" ] }, { "input": "hello console (v178)", "output": "console.log('Hello, World!');", "tags": [ "basics", "beginner" ] }, { "input": "object creation (v179)", "output": "const obj = { name: 'John', age: 30 };", "tags": [ "basics", "beginner" ] }, { "input": "array destructure (v180)", "output": "const [a, b, c] = [1, 2, 3];", "tags": [ "basics", "beginner" ] }, { "input": "string methods (v181)", "output": "const str = 'hello'; str.toUpperCase(); str.includes('ell'); str.split('');", "tags": [ "basics", "beginner" ] }, { "input": "hello console (v182)", "output": "console.log('Hello, World!');", "tags": [ "basics", "beginner" ] }, { "input": "simple function (v183)", "output": "function add(a, b) { return a + b; }", "tags": [ "basics", "beginner" ] }, { "input": "if statement (v184)", "output": "if (x > 5) { console.log('Greater'); } else { console.log('Lesser'); }", "tags": [ "basics", "beginner" ] }, { "input": "if statement (v185)", "output": "if (x > 5) { console.log('Greater'); } else { console.log('Lesser'); }", "tags": [ "basics", "beginner" ] }, { "input": "for loop (v186)", "output": "for (let i = 0; i < 10; i++) { console.log(i); }", "tags": [ "basics", "beginner" ] }, { "input": "simple function (v187)", "output": "function add(a, b) { return a + b; }", "tags": [ "basics", "beginner" ] }, { "input": "array methods (v188)", "output": "arr.map(x => x * 2); arr.filter(x => x > 2); arr.forEach(x => console.log(x));", "tags": [ "basics", "beginner" ] }, { "input": "object access (v189)", "output": "const person = { name: 'Bob' }; console.log(person.name); console.log(person['name']);", "tags": [ "basics", "beginner" ] }, { "input": "object destructure (v190)", "output": "const { name, age } = { name: 'Alice', age: 25 };", "tags": [ "basics", "beginner" ] }, { "input": "array methods (v191)", "output": "arr.map(x => x * 2); arr.filter(x => x > 2); arr.forEach(x => console.log(x));", "tags": [ "basics", "beginner" ] }, { "input": "if statement (v192)", "output": "if (x > 5) { console.log('Greater'); } else { console.log('Lesser'); }", "tags": [ "basics", "beginner" ] }, { "input": "array creation (v193)", "output": "const arr = [1, 2, 3, 4, 5];", "tags": [ "basics", "beginner" ] }, { "input": "object access (v194)", "output": "const person = { name: 'Bob' }; console.log(person.name); console.log(person['name']);", "tags": [ "basics", "beginner" ] }, { "input": "if statement (v195)", "output": "if (x > 5) { console.log('Greater'); } else { console.log('Lesser'); }", "tags": [ "basics", "beginner" ] }, { "input": "object creation (v196)", "output": "const obj = { name: 'John', age: 30 };", "tags": [ "basics", "beginner" ] }, { "input": "while loop (v197)", "output": "let i = 0; while (i < 5) { console.log(i); i++; }", "tags": [ "basics", "beginner" ] }, { "input": "hello console (v198)", "output": "console.log('Hello, World!');", "tags": [ "basics", "beginner" ] }, { "input": "if statement (v199)", "output": "if (x > 5) { console.log('Greater'); } else { console.log('Lesser'); }", "tags": [ "basics", "beginner" ] }, { "input": "promise async 0", "output": "new Promise((resolve, reject) => { resolve('Success'); })", "tags": [ "async", "promises" ] }, { "input": "promise all async 1", "output": "Promise.all([p1, p2, p3]).then(results => console.log(results));", "tags": [ "async", "promises" ] }, { "input": "promise async 2", "output": "new Promise((resolve, reject) => { resolve('Success'); })", "tags": [ "async", "promises" ] }, { "input": "promise all async 3", "output": "Promise.all([p1, p2, p3]).then(results => console.log(results));", "tags": [ "async", "promises" ] }, { "input": "promise async 4", "output": "new Promise((resolve, reject) => { resolve('Success'); })", "tags": [ "async", "promises" ] }, { "input": "then catch async 5", "output": "promise.then(result => console.log(result)).catch(err => console.error(err));", "tags": [ "async", "promises" ] }, { "input": "promise async 6", "output": "new Promise((resolve, reject) => { resolve('Success'); })", "tags": [ "async", "promises" ] }, { "input": "promise race async 7", "output": "Promise.race([p1, p2]).then(result => console.log(result));", "tags": [ "async", "promises" ] }, { "input": "async await async 8", "output": "async function fetchData() { const data = await fetch('/api'); return data; }", "tags": [ "async", "promises" ] }, { "input": "promise race async 9", "output": "Promise.race([p1, p2]).then(result => console.log(result));", "tags": [ "async", "promises" ] }, { "input": "then catch async 10", "output": "promise.then(result => console.log(result)).catch(err => console.error(err));", "tags": [ "async", "promises" ] }, { "input": "async await async 11", "output": "async function fetchData() { const data = await fetch('/api'); return data; }", "tags": [ "async", "promises" ] }, { "input": "async await async 12", "output": "async function fetchData() { const data = await fetch('/api'); return data; }", "tags": [ "async", "promises" ] }, { "input": "promise race async 13", "output": "Promise.race([p1, p2]).then(result => console.log(result));", "tags": [ "async", "promises" ] }, { "input": "promise async 14", "output": "new Promise((resolve, reject) => { resolve('Success'); })", "tags": [ "async", "promises" ] }, { "input": "promise all async 15", "output": "Promise.all([p1, p2, p3]).then(results => console.log(results));", "tags": [ "async", "promises" ] }, { "input": "promise all async 16", "output": "Promise.all([p1, p2, p3]).then(results => console.log(results));", "tags": [ "async", "promises" ] }, { "input": "promise async 17", "output": "new Promise((resolve, reject) => { resolve('Success'); })", "tags": [ "async", "promises" ] }, { "input": "promise race async 18", "output": "Promise.race([p1, p2]).then(result => console.log(result));", "tags": [ "async", "promises" ] }, { "input": "promise all async 19", "output": "Promise.all([p1, p2, p3]).then(results => console.log(results));", "tags": [ "async", "promises" ] }, { "input": "promise async 20", "output": "new Promise((resolve, reject) => { resolve('Success'); })", "tags": [ "async", "promises" ] }, { "input": "promise all async 21", "output": "Promise.all([p1, p2, p3]).then(results => console.log(results));", "tags": [ "async", "promises" ] }, { "input": "promise async 22", "output": "new Promise((resolve, reject) => { resolve('Success'); })", "tags": [ "async", "promises" ] }, { "input": "then catch async 23", "output": "promise.then(result => console.log(result)).catch(err => console.error(err));", "tags": [ "async", "promises" ] }, { "input": "promise async 24", "output": "new Promise((resolve, reject) => { resolve('Success'); })", "tags": [ "async", "promises" ] }, { "input": "async await async 25", "output": "async function fetchData() { const data = await fetch('/api'); return data; }", "tags": [ "async", "promises" ] }, { "input": "promise all async 26", "output": "Promise.all([p1, p2, p3]).then(results => console.log(results));", "tags": [ "async", "promises" ] }, { "input": "then catch async 27", "output": "promise.then(result => console.log(result)).catch(err => console.error(err));", "tags": [ "async", "promises" ] }, { "input": "promise async 28", "output": "new Promise((resolve, reject) => { resolve('Success'); })", "tags": [ "async", "promises" ] }, { "input": "promise async 29", "output": "new Promise((resolve, reject) => { resolve('Success'); })", "tags": [ "async", "promises" ] }, { "input": "then catch async 30", "output": "promise.then(result => console.log(result)).catch(err => console.error(err));", "tags": [ "async", "promises" ] }, { "input": "promise race async 31", "output": "Promise.race([p1, p2]).then(result => console.log(result));", "tags": [ "async", "promises" ] }, { "input": "promise async 32", "output": "new Promise((resolve, reject) => { resolve('Success'); })", "tags": [ "async", "promises" ] }, { "input": "async await async 33", "output": "async function fetchData() { const data = await fetch('/api'); return data; }", "tags": [ "async", "promises" ] }, { "input": "promise all async 34", "output": "Promise.all([p1, p2, p3]).then(results => console.log(results));", "tags": [ "async", "promises" ] }, { "input": "then catch async 35", "output": "promise.then(result => console.log(result)).catch(err => console.error(err));", "tags": [ "async", "promises" ] }, { "input": "promise race async 36", "output": "Promise.race([p1, p2]).then(result => console.log(result));", "tags": [ "async", "promises" ] }, { "input": "async await async 37", "output": "async function fetchData() { const data = await fetch('/api'); return data; }", "tags": [ "async", "promises" ] }, { "input": "promise async 38", "output": "new Promise((resolve, reject) => { resolve('Success'); })", "tags": [ "async", "promises" ] }, { "input": "promise all async 39", "output": "Promise.all([p1, p2, p3]).then(results => console.log(results));", "tags": [ "async", "promises" ] }, { "input": "then catch async 40", "output": "promise.then(result => console.log(result)).catch(err => console.error(err));", "tags": [ "async", "promises" ] }, { "input": "promise all async 41", "output": "Promise.all([p1, p2, p3]).then(results => console.log(results));", "tags": [ "async", "promises" ] }, { "input": "then catch async 42", "output": "promise.then(result => console.log(result)).catch(err => console.error(err));", "tags": [ "async", "promises" ] }, { "input": "promise async 43", "output": "new Promise((resolve, reject) => { resolve('Success'); })", "tags": [ "async", "promises" ] }, { "input": "promise all async 44", "output": "Promise.all([p1, p2, p3]).then(results => console.log(results));", "tags": [ "async", "promises" ] }, { "input": "async await async 45", "output": "async function fetchData() { const data = await fetch('/api'); return data; }", "tags": [ "async", "promises" ] }, { "input": "async await async 46", "output": "async function fetchData() { const data = await fetch('/api'); return data; }", "tags": [ "async", "promises" ] }, { "input": "then catch async 47", "output": "promise.then(result => console.log(result)).catch(err => console.error(err));", "tags": [ "async", "promises" ] }, { "input": "promise all async 48", "output": "Promise.all([p1, p2, p3]).then(results => console.log(results));", "tags": [ "async", "promises" ] }, { "input": "promise async 49", "output": "new Promise((resolve, reject) => { resolve('Success'); })", "tags": [ "async", "promises" ] }, { "input": "promise race async 50", "output": "Promise.race([p1, p2]).then(result => console.log(result));", "tags": [ "async", "promises" ] }, { "input": "promise race async 51", "output": "Promise.race([p1, p2]).then(result => console.log(result));", "tags": [ "async", "promises" ] }, { "input": "promise race async 52", "output": "Promise.race([p1, p2]).then(result => console.log(result));", "tags": [ "async", "promises" ] }, { "input": "promise all async 53", "output": "Promise.all([p1, p2, p3]).then(results => console.log(results));", "tags": [ "async", "promises" ] }, { "input": "then catch async 54", "output": "promise.then(result => console.log(result)).catch(err => console.error(err));", "tags": [ "async", "promises" ] }, { "input": "promise race async 55", "output": "Promise.race([p1, p2]).then(result => console.log(result));", "tags": [ "async", "promises" ] }, { "input": "promise all async 56", "output": "Promise.all([p1, p2, p3]).then(results => console.log(results));", "tags": [ "async", "promises" ] }, { "input": "promise all async 57", "output": "Promise.all([p1, p2, p3]).then(results => console.log(results));", "tags": [ "async", "promises" ] }, { "input": "promise async 58", "output": "new Promise((resolve, reject) => { resolve('Success'); })", "tags": [ "async", "promises" ] }, { "input": "then catch async 59", "output": "promise.then(result => console.log(result)).catch(err => console.error(err));", "tags": [ "async", "promises" ] }, { "input": "async await async 60", "output": "async function fetchData() { const data = await fetch('/api'); return data; }", "tags": [ "async", "promises" ] }, { "input": "then catch async 61", "output": "promise.then(result => console.log(result)).catch(err => console.error(err));", "tags": [ "async", "promises" ] }, { "input": "then catch async 62", "output": "promise.then(result => console.log(result)).catch(err => console.error(err));", "tags": [ "async", "promises" ] }, { "input": "promise race async 63", "output": "Promise.race([p1, p2]).then(result => console.log(result));", "tags": [ "async", "promises" ] }, { "input": "promise async 64", "output": "new Promise((resolve, reject) => { resolve('Success'); })", "tags": [ "async", "promises" ] }, { "input": "promise race async 65", "output": "Promise.race([p1, p2]).then(result => console.log(result));", "tags": [ "async", "promises" ] }, { "input": "then catch async 66", "output": "promise.then(result => console.log(result)).catch(err => console.error(err));", "tags": [ "async", "promises" ] }, { "input": "async await async 67", "output": "async function fetchData() { const data = await fetch('/api'); return data; }", "tags": [ "async", "promises" ] }, { "input": "promise async 68", "output": "new Promise((resolve, reject) => { resolve('Success'); })", "tags": [ "async", "promises" ] }, { "input": "promise all async 69", "output": "Promise.all([p1, p2, p3]).then(results => console.log(results));", "tags": [ "async", "promises" ] }, { "input": "then catch async 70", "output": "promise.then(result => console.log(result)).catch(err => console.error(err));", "tags": [ "async", "promises" ] }, { "input": "promise async 71", "output": "new Promise((resolve, reject) => { resolve('Success'); })", "tags": [ "async", "promises" ] }, { "input": "then catch async 72", "output": "promise.then(result => console.log(result)).catch(err => console.error(err));", "tags": [ "async", "promises" ] }, { "input": "promise race async 73", "output": "Promise.race([p1, p2]).then(result => console.log(result));", "tags": [ "async", "promises" ] }, { "input": "promise all async 74", "output": "Promise.all([p1, p2, p3]).then(results => console.log(results));", "tags": [ "async", "promises" ] }, { "input": "then catch async 75", "output": "promise.then(result => console.log(result)).catch(err => console.error(err));", "tags": [ "async", "promises" ] }, { "input": "promise all async 76", "output": "Promise.all([p1, p2, p3]).then(results => console.log(results));", "tags": [ "async", "promises" ] }, { "input": "promise async 77", "output": "new Promise((resolve, reject) => { resolve('Success'); })", "tags": [ "async", "promises" ] }, { "input": "promise race async 78", "output": "Promise.race([p1, p2]).then(result => console.log(result));", "tags": [ "async", "promises" ] }, { "input": "promise async 79", "output": "new Promise((resolve, reject) => { resolve('Success'); })", "tags": [ "async", "promises" ] }, { "input": "async await async 80", "output": "async function fetchData() { const data = await fetch('/api'); return data; }", "tags": [ "async", "promises" ] }, { "input": "promise race async 81", "output": "Promise.race([p1, p2]).then(result => console.log(result));", "tags": [ "async", "promises" ] }, { "input": "promise all async 82", "output": "Promise.all([p1, p2, p3]).then(results => console.log(results));", "tags": [ "async", "promises" ] }, { "input": "promise all async 83", "output": "Promise.all([p1, p2, p3]).then(results => console.log(results));", "tags": [ "async", "promises" ] }, { "input": "async await async 84", "output": "async function fetchData() { const data = await fetch('/api'); return data; }", "tags": [ "async", "promises" ] }, { "input": "async await async 85", "output": "async function fetchData() { const data = await fetch('/api'); return data; }", "tags": [ "async", "promises" ] }, { "input": "promise race async 86", "output": "Promise.race([p1, p2]).then(result => console.log(result));", "tags": [ "async", "promises" ] }, { "input": "async await async 87", "output": "async function fetchData() { const data = await fetch('/api'); return data; }", "tags": [ "async", "promises" ] }, { "input": "async await async 88", "output": "async function fetchData() { const data = await fetch('/api'); return data; }", "tags": [ "async", "promises" ] }, { "input": "promise race async 89", "output": "Promise.race([p1, p2]).then(result => console.log(result));", "tags": [ "async", "promises" ] }, { "input": "promise race async 90", "output": "Promise.race([p1, p2]).then(result => console.log(result));", "tags": [ "async", "promises" ] }, { "input": "async await async 91", "output": "async function fetchData() { const data = await fetch('/api'); return data; }", "tags": [ "async", "promises" ] }, { "input": "promise async 92", "output": "new Promise((resolve, reject) => { resolve('Success'); })", "tags": [ "async", "promises" ] }, { "input": "promise race async 93", "output": "Promise.race([p1, p2]).then(result => console.log(result));", "tags": [ "async", "promises" ] }, { "input": "promise all async 94", "output": "Promise.all([p1, p2, p3]).then(results => console.log(results));", "tags": [ "async", "promises" ] }, { "input": "promise race async 95", "output": "Promise.race([p1, p2]).then(result => console.log(result));", "tags": [ "async", "promises" ] }, { "input": "async await async 96", "output": "async function fetchData() { const data = await fetch('/api'); return data; }", "tags": [ "async", "promises" ] }, { "input": "promise all async 97", "output": "Promise.all([p1, p2, p3]).then(results => console.log(results));", "tags": [ "async", "promises" ] }, { "input": "promise race async 98", "output": "Promise.race([p1, p2]).then(result => console.log(result));", "tags": [ "async", "promises" ] }, { "input": "then catch async 99", "output": "promise.then(result => console.log(result)).catch(err => console.error(err));", "tags": [ "async", "promises" ] }, { "input": "promise async 100", "output": "new Promise((resolve, reject) => { resolve('Success'); })", "tags": [ "async", "promises" ] }, { "input": "promise race async 101", "output": "Promise.race([p1, p2]).then(result => console.log(result));", "tags": [ "async", "promises" ] }, { "input": "then catch async 102", "output": "promise.then(result => console.log(result)).catch(err => console.error(err));", "tags": [ "async", "promises" ] }, { "input": "promise async 103", "output": "new Promise((resolve, reject) => { resolve('Success'); })", "tags": [ "async", "promises" ] }, { "input": "promise async 104", "output": "new Promise((resolve, reject) => { resolve('Success'); })", "tags": [ "async", "promises" ] }, { "input": "promise async 105", "output": "new Promise((resolve, reject) => { resolve('Success'); })", "tags": [ "async", "promises" ] }, { "input": "promise race async 106", "output": "Promise.race([p1, p2]).then(result => console.log(result));", "tags": [ "async", "promises" ] }, { "input": "async await async 107", "output": "async function fetchData() { const data = await fetch('/api'); return data; }", "tags": [ "async", "promises" ] }, { "input": "async await async 108", "output": "async function fetchData() { const data = await fetch('/api'); return data; }", "tags": [ "async", "promises" ] }, { "input": "promise async 109", "output": "new Promise((resolve, reject) => { resolve('Success'); })", "tags": [ "async", "promises" ] }, { "input": "promise race async 110", "output": "Promise.race([p1, p2]).then(result => console.log(result));", "tags": [ "async", "promises" ] }, { "input": "promise all async 111", "output": "Promise.all([p1, p2, p3]).then(results => console.log(results));", "tags": [ "async", "promises" ] }, { "input": "promise all async 112", "output": "Promise.all([p1, p2, p3]).then(results => console.log(results));", "tags": [ "async", "promises" ] }, { "input": "then catch async 113", "output": "promise.then(result => console.log(result)).catch(err => console.error(err));", "tags": [ "async", "promises" ] }, { "input": "then catch async 114", "output": "promise.then(result => console.log(result)).catch(err => console.error(err));", "tags": [ "async", "promises" ] }, { "input": "then catch async 115", "output": "promise.then(result => console.log(result)).catch(err => console.error(err));", "tags": [ "async", "promises" ] }, { "input": "promise async 116", "output": "new Promise((resolve, reject) => { resolve('Success'); })", "tags": [ "async", "promises" ] }, { "input": "promise async 117", "output": "new Promise((resolve, reject) => { resolve('Success'); })", "tags": [ "async", "promises" ] }, { "input": "promise all async 118", "output": "Promise.all([p1, p2, p3]).then(results => console.log(results));", "tags": [ "async", "promises" ] }, { "input": "promise async 119", "output": "new Promise((resolve, reject) => { resolve('Success'); })", "tags": [ "async", "promises" ] }, { "input": "then catch async 120", "output": "promise.then(result => console.log(result)).catch(err => console.error(err));", "tags": [ "async", "promises" ] }, { "input": "async await async 121", "output": "async function fetchData() { const data = await fetch('/api'); return data; }", "tags": [ "async", "promises" ] }, { "input": "async await async 122", "output": "async function fetchData() { const data = await fetch('/api'); return data; }", "tags": [ "async", "promises" ] }, { "input": "promise race async 123", "output": "Promise.race([p1, p2]).then(result => console.log(result));", "tags": [ "async", "promises" ] }, { "input": "async await async 124", "output": "async function fetchData() { const data = await fetch('/api'); return data; }", "tags": [ "async", "promises" ] }, { "input": "async await async 125", "output": "async function fetchData() { const data = await fetch('/api'); return data; }", "tags": [ "async", "promises" ] }, { "input": "promise all async 126", "output": "Promise.all([p1, p2, p3]).then(results => console.log(results));", "tags": [ "async", "promises" ] }, { "input": "promise all async 127", "output": "Promise.all([p1, p2, p3]).then(results => console.log(results));", "tags": [ "async", "promises" ] }, { "input": "promise async 128", "output": "new Promise((resolve, reject) => { resolve('Success'); })", "tags": [ "async", "promises" ] }, { "input": "async await async 129", "output": "async function fetchData() { const data = await fetch('/api'); return data; }", "tags": [ "async", "promises" ] }, { "input": "async await async 130", "output": "async function fetchData() { const data = await fetch('/api'); return data; }", "tags": [ "async", "promises" ] }, { "input": "then catch async 131", "output": "promise.then(result => console.log(result)).catch(err => console.error(err));", "tags": [ "async", "promises" ] }, { "input": "async await async 132", "output": "async function fetchData() { const data = await fetch('/api'); return data; }", "tags": [ "async", "promises" ] }, { "input": "promise all async 133", "output": "Promise.all([p1, p2, p3]).then(results => console.log(results));", "tags": [ "async", "promises" ] }, { "input": "promise race async 134", "output": "Promise.race([p1, p2]).then(result => console.log(result));", "tags": [ "async", "promises" ] }, { "input": "promise async 135", "output": "new Promise((resolve, reject) => { resolve('Success'); })", "tags": [ "async", "promises" ] }, { "input": "async await async 136", "output": "async function fetchData() { const data = await fetch('/api'); return data; }", "tags": [ "async", "promises" ] }, { "input": "promise async 137", "output": "new Promise((resolve, reject) => { resolve('Success'); })", "tags": [ "async", "promises" ] }, { "input": "promise race async 138", "output": "Promise.race([p1, p2]).then(result => console.log(result));", "tags": [ "async", "promises" ] }, { "input": "then catch async 139", "output": "promise.then(result => console.log(result)).catch(err => console.error(err));", "tags": [ "async", "promises" ] }, { "input": "promise all async 140", "output": "Promise.all([p1, p2, p3]).then(results => console.log(results));", "tags": [ "async", "promises" ] }, { "input": "promise all async 141", "output": "Promise.all([p1, p2, p3]).then(results => console.log(results));", "tags": [ "async", "promises" ] }, { "input": "then catch async 142", "output": "promise.then(result => console.log(result)).catch(err => console.error(err));", "tags": [ "async", "promises" ] }, { "input": "promise async 143", "output": "new Promise((resolve, reject) => { resolve('Success'); })", "tags": [ "async", "promises" ] }, { "input": "then catch async 144", "output": "promise.then(result => console.log(result)).catch(err => console.error(err));", "tags": [ "async", "promises" ] }, { "input": "promise async 145", "output": "new Promise((resolve, reject) => { resolve('Success'); })", "tags": [ "async", "promises" ] }, { "input": "promise race async 146", "output": "Promise.race([p1, p2]).then(result => console.log(result));", "tags": [ "async", "promises" ] }, { "input": "promise race async 147", "output": "Promise.race([p1, p2]).then(result => console.log(result));", "tags": [ "async", "promises" ] }, { "input": "promise all async 148", "output": "Promise.all([p1, p2, p3]).then(results => console.log(results));", "tags": [ "async", "promises" ] }, { "input": "async await async 149", "output": "async function fetchData() { const data = await fetch('/api'); return data; }", "tags": [ "async", "promises" ] }, { "input": "create element dom 0", "output": "const div = document.createElement('div'); div.textContent = 'Hello'; document.body.appendChild(div);", "tags": [ "dom", "web" ] }, { "input": "modify style dom 1", "output": "elem.style.color = 'red'; elem.style.display = 'none'; elem.classList.add('active');", "tags": [ "dom", "web" ] }, { "input": "event listener dom 2", "output": "button.addEventListener('click', () => { console.log('Clicked'); });", "tags": [ "dom", "web" ] }, { "input": "create element dom 3", "output": "const div = document.createElement('div'); div.textContent = 'Hello'; document.body.appendChild(div);", "tags": [ "dom", "web" ] }, { "input": "inner html dom 4", "output": "elem.innerHTML = '

New Content

'; elem.textContent = 'Plain Text';", "tags": [ "dom", "web" ] }, { "input": "create element dom 5", "output": "const div = document.createElement('div'); div.textContent = 'Hello'; document.body.appendChild(div);", "tags": [ "dom", "web" ] }, { "input": "modify style dom 6", "output": "elem.style.color = 'red'; elem.style.display = 'none'; elem.classList.add('active');", "tags": [ "dom", "web" ] }, { "input": "inner html dom 7", "output": "elem.innerHTML = '

New Content

'; elem.textContent = 'Plain Text';", "tags": [ "dom", "web" ] }, { "input": "modify style dom 8", "output": "elem.style.color = 'red'; elem.style.display = 'none'; elem.classList.add('active');", "tags": [ "dom", "web" ] }, { "input": "event listener dom 9", "output": "button.addEventListener('click', () => { console.log('Clicked'); });", "tags": [ "dom", "web" ] }, { "input": "create element dom 10", "output": "const div = document.createElement('div'); div.textContent = 'Hello'; document.body.appendChild(div);", "tags": [ "dom", "web" ] }, { "input": "modify style dom 11", "output": "elem.style.color = 'red'; elem.style.display = 'none'; elem.classList.add('active');", "tags": [ "dom", "web" ] }, { "input": "select element dom 12", "output": "const elem = document.getElementById('id'); const elem2 = document.querySelector('.class');", "tags": [ "dom", "web" ] }, { "input": "modify style dom 13", "output": "elem.style.color = 'red'; elem.style.display = 'none'; elem.classList.add('active');", "tags": [ "dom", "web" ] }, { "input": "create element dom 14", "output": "const div = document.createElement('div'); div.textContent = 'Hello'; document.body.appendChild(div);", "tags": [ "dom", "web" ] }, { "input": "event listener dom 15", "output": "button.addEventListener('click', () => { console.log('Clicked'); });", "tags": [ "dom", "web" ] }, { "input": "inner html dom 16", "output": "elem.innerHTML = '

New Content

'; elem.textContent = 'Plain Text';", "tags": [ "dom", "web" ] }, { "input": "create element dom 17", "output": "const div = document.createElement('div'); div.textContent = 'Hello'; document.body.appendChild(div);", "tags": [ "dom", "web" ] }, { "input": "modify style dom 18", "output": "elem.style.color = 'red'; elem.style.display = 'none'; elem.classList.add('active');", "tags": [ "dom", "web" ] }, { "input": "event listener dom 19", "output": "button.addEventListener('click', () => { console.log('Clicked'); });", "tags": [ "dom", "web" ] }, { "input": "select element dom 20", "output": "const elem = document.getElementById('id'); const elem2 = document.querySelector('.class');", "tags": [ "dom", "web" ] }, { "input": "event listener dom 21", "output": "button.addEventListener('click', () => { console.log('Clicked'); });", "tags": [ "dom", "web" ] }, { "input": "modify style dom 22", "output": "elem.style.color = 'red'; elem.style.display = 'none'; elem.classList.add('active');", "tags": [ "dom", "web" ] }, { "input": "inner html dom 23", "output": "elem.innerHTML = '

New Content

'; elem.textContent = 'Plain Text';", "tags": [ "dom", "web" ] }, { "input": "inner html dom 24", "output": "elem.innerHTML = '

New Content

'; elem.textContent = 'Plain Text';", "tags": [ "dom", "web" ] }, { "input": "event listener dom 25", "output": "button.addEventListener('click', () => { console.log('Clicked'); });", "tags": [ "dom", "web" ] }, { "input": "modify style dom 26", "output": "elem.style.color = 'red'; elem.style.display = 'none'; elem.classList.add('active');", "tags": [ "dom", "web" ] }, { "input": "create element dom 27", "output": "const div = document.createElement('div'); div.textContent = 'Hello'; document.body.appendChild(div);", "tags": [ "dom", "web" ] }, { "input": "modify style dom 28", "output": "elem.style.color = 'red'; elem.style.display = 'none'; elem.classList.add('active');", "tags": [ "dom", "web" ] }, { "input": "select element dom 29", "output": "const elem = document.getElementById('id'); const elem2 = document.querySelector('.class');", "tags": [ "dom", "web" ] }, { "input": "event listener dom 30", "output": "button.addEventListener('click', () => { console.log('Clicked'); });", "tags": [ "dom", "web" ] }, { "input": "select element dom 31", "output": "const elem = document.getElementById('id'); const elem2 = document.querySelector('.class');", "tags": [ "dom", "web" ] }, { "input": "select element dom 32", "output": "const elem = document.getElementById('id'); const elem2 = document.querySelector('.class');", "tags": [ "dom", "web" ] }, { "input": "modify style dom 33", "output": "elem.style.color = 'red'; elem.style.display = 'none'; elem.classList.add('active');", "tags": [ "dom", "web" ] }, { "input": "event listener dom 34", "output": "button.addEventListener('click', () => { console.log('Clicked'); });", "tags": [ "dom", "web" ] }, { "input": "modify style dom 35", "output": "elem.style.color = 'red'; elem.style.display = 'none'; elem.classList.add('active');", "tags": [ "dom", "web" ] }, { "input": "select element dom 36", "output": "const elem = document.getElementById('id'); const elem2 = document.querySelector('.class');", "tags": [ "dom", "web" ] }, { "input": "event listener dom 37", "output": "button.addEventListener('click', () => { console.log('Clicked'); });", "tags": [ "dom", "web" ] }, { "input": "select element dom 38", "output": "const elem = document.getElementById('id'); const elem2 = document.querySelector('.class');", "tags": [ "dom", "web" ] }, { "input": "inner html dom 39", "output": "elem.innerHTML = '

New Content

'; elem.textContent = 'Plain Text';", "tags": [ "dom", "web" ] }, { "input": "create element dom 40", "output": "const div = document.createElement('div'); div.textContent = 'Hello'; document.body.appendChild(div);", "tags": [ "dom", "web" ] }, { "input": "modify style dom 41", "output": "elem.style.color = 'red'; elem.style.display = 'none'; elem.classList.add('active');", "tags": [ "dom", "web" ] }, { "input": "inner html dom 42", "output": "elem.innerHTML = '

New Content

'; elem.textContent = 'Plain Text';", "tags": [ "dom", "web" ] }, { "input": "create element dom 43", "output": "const div = document.createElement('div'); div.textContent = 'Hello'; document.body.appendChild(div);", "tags": [ "dom", "web" ] }, { "input": "event listener dom 44", "output": "button.addEventListener('click', () => { console.log('Clicked'); });", "tags": [ "dom", "web" ] }, { "input": "event listener dom 45", "output": "button.addEventListener('click', () => { console.log('Clicked'); });", "tags": [ "dom", "web" ] }, { "input": "event listener dom 46", "output": "button.addEventListener('click', () => { console.log('Clicked'); });", "tags": [ "dom", "web" ] }, { "input": "select element dom 47", "output": "const elem = document.getElementById('id'); const elem2 = document.querySelector('.class');", "tags": [ "dom", "web" ] }, { "input": "select element dom 48", "output": "const elem = document.getElementById('id'); const elem2 = document.querySelector('.class');", "tags": [ "dom", "web" ] }, { "input": "event listener dom 49", "output": "button.addEventListener('click', () => { console.log('Clicked'); });", "tags": [ "dom", "web" ] }, { "input": "create element dom 50", "output": "const div = document.createElement('div'); div.textContent = 'Hello'; document.body.appendChild(div);", "tags": [ "dom", "web" ] }, { "input": "create element dom 51", "output": "const div = document.createElement('div'); div.textContent = 'Hello'; document.body.appendChild(div);", "tags": [ "dom", "web" ] }, { "input": "inner html dom 52", "output": "elem.innerHTML = '

New Content

'; elem.textContent = 'Plain Text';", "tags": [ "dom", "web" ] }, { "input": "modify style dom 53", "output": "elem.style.color = 'red'; elem.style.display = 'none'; elem.classList.add('active');", "tags": [ "dom", "web" ] }, { "input": "create element dom 54", "output": "const div = document.createElement('div'); div.textContent = 'Hello'; document.body.appendChild(div);", "tags": [ "dom", "web" ] }, { "input": "modify style dom 55", "output": "elem.style.color = 'red'; elem.style.display = 'none'; elem.classList.add('active');", "tags": [ "dom", "web" ] }, { "input": "create element dom 56", "output": "const div = document.createElement('div'); div.textContent = 'Hello'; document.body.appendChild(div);", "tags": [ "dom", "web" ] }, { "input": "event listener dom 57", "output": "button.addEventListener('click', () => { console.log('Clicked'); });", "tags": [ "dom", "web" ] }, { "input": "inner html dom 58", "output": "elem.innerHTML = '

New Content

'; elem.textContent = 'Plain Text';", "tags": [ "dom", "web" ] }, { "input": "inner html dom 59", "output": "elem.innerHTML = '

New Content

'; elem.textContent = 'Plain Text';", "tags": [ "dom", "web" ] }, { "input": "select element dom 60", "output": "const elem = document.getElementById('id'); const elem2 = document.querySelector('.class');", "tags": [ "dom", "web" ] }, { "input": "create element dom 61", "output": "const div = document.createElement('div'); div.textContent = 'Hello'; document.body.appendChild(div);", "tags": [ "dom", "web" ] }, { "input": "modify style dom 62", "output": "elem.style.color = 'red'; elem.style.display = 'none'; elem.classList.add('active');", "tags": [ "dom", "web" ] }, { "input": "select element dom 63", "output": "const elem = document.getElementById('id'); const elem2 = document.querySelector('.class');", "tags": [ "dom", "web" ] }, { "input": "event listener dom 64", "output": "button.addEventListener('click', () => { console.log('Clicked'); });", "tags": [ "dom", "web" ] }, { "input": "modify style dom 65", "output": "elem.style.color = 'red'; elem.style.display = 'none'; elem.classList.add('active');", "tags": [ "dom", "web" ] }, { "input": "modify style dom 66", "output": "elem.style.color = 'red'; elem.style.display = 'none'; elem.classList.add('active');", "tags": [ "dom", "web" ] }, { "input": "inner html dom 67", "output": "elem.innerHTML = '

New Content

'; elem.textContent = 'Plain Text';", "tags": [ "dom", "web" ] }, { "input": "modify style dom 68", "output": "elem.style.color = 'red'; elem.style.display = 'none'; elem.classList.add('active');", "tags": [ "dom", "web" ] }, { "input": "select element dom 69", "output": "const elem = document.getElementById('id'); const elem2 = document.querySelector('.class');", "tags": [ "dom", "web" ] }, { "input": "event listener dom 70", "output": "button.addEventListener('click', () => { console.log('Clicked'); });", "tags": [ "dom", "web" ] }, { "input": "event listener dom 71", "output": "button.addEventListener('click', () => { console.log('Clicked'); });", "tags": [ "dom", "web" ] }, { "input": "event listener dom 72", "output": "button.addEventListener('click', () => { console.log('Clicked'); });", "tags": [ "dom", "web" ] }, { "input": "select element dom 73", "output": "const elem = document.getElementById('id'); const elem2 = document.querySelector('.class');", "tags": [ "dom", "web" ] }, { "input": "select element dom 74", "output": "const elem = document.getElementById('id'); const elem2 = document.querySelector('.class');", "tags": [ "dom", "web" ] }, { "input": "select element dom 75", "output": "const elem = document.getElementById('id'); const elem2 = document.querySelector('.class');", "tags": [ "dom", "web" ] }, { "input": "modify style dom 76", "output": "elem.style.color = 'red'; elem.style.display = 'none'; elem.classList.add('active');", "tags": [ "dom", "web" ] }, { "input": "modify style dom 77", "output": "elem.style.color = 'red'; elem.style.display = 'none'; elem.classList.add('active');", "tags": [ "dom", "web" ] }, { "input": "inner html dom 78", "output": "elem.innerHTML = '

New Content

'; elem.textContent = 'Plain Text';", "tags": [ "dom", "web" ] }, { "input": "inner html dom 79", "output": "elem.innerHTML = '

New Content

'; elem.textContent = 'Plain Text';", "tags": [ "dom", "web" ] }, { "input": "event listener dom 80", "output": "button.addEventListener('click', () => { console.log('Clicked'); });", "tags": [ "dom", "web" ] }, { "input": "select element dom 81", "output": "const elem = document.getElementById('id'); const elem2 = document.querySelector('.class');", "tags": [ "dom", "web" ] }, { "input": "modify style dom 82", "output": "elem.style.color = 'red'; elem.style.display = 'none'; elem.classList.add('active');", "tags": [ "dom", "web" ] }, { "input": "modify style dom 83", "output": "elem.style.color = 'red'; elem.style.display = 'none'; elem.classList.add('active');", "tags": [ "dom", "web" ] }, { "input": "select element dom 84", "output": "const elem = document.getElementById('id'); const elem2 = document.querySelector('.class');", "tags": [ "dom", "web" ] }, { "input": "event listener dom 85", "output": "button.addEventListener('click', () => { console.log('Clicked'); });", "tags": [ "dom", "web" ] }, { "input": "event listener dom 86", "output": "button.addEventListener('click', () => { console.log('Clicked'); });", "tags": [ "dom", "web" ] }, { "input": "modify style dom 87", "output": "elem.style.color = 'red'; elem.style.display = 'none'; elem.classList.add('active');", "tags": [ "dom", "web" ] }, { "input": "event listener dom 88", "output": "button.addEventListener('click', () => { console.log('Clicked'); });", "tags": [ "dom", "web" ] }, { "input": "event listener dom 89", "output": "button.addEventListener('click', () => { console.log('Clicked'); });", "tags": [ "dom", "web" ] }, { "input": "event listener dom 90", "output": "button.addEventListener('click', () => { console.log('Clicked'); });", "tags": [ "dom", "web" ] }, { "input": "create element dom 91", "output": "const div = document.createElement('div'); div.textContent = 'Hello'; document.body.appendChild(div);", "tags": [ "dom", "web" ] }, { "input": "select element dom 92", "output": "const elem = document.getElementById('id'); const elem2 = document.querySelector('.class');", "tags": [ "dom", "web" ] }, { "input": "modify style dom 93", "output": "elem.style.color = 'red'; elem.style.display = 'none'; elem.classList.add('active');", "tags": [ "dom", "web" ] }, { "input": "create element dom 94", "output": "const div = document.createElement('div'); div.textContent = 'Hello'; document.body.appendChild(div);", "tags": [ "dom", "web" ] }, { "input": "event listener dom 95", "output": "button.addEventListener('click', () => { console.log('Clicked'); });", "tags": [ "dom", "web" ] }, { "input": "event listener dom 96", "output": "button.addEventListener('click', () => { console.log('Clicked'); });", "tags": [ "dom", "web" ] }, { "input": "inner html dom 97", "output": "elem.innerHTML = '

New Content

'; elem.textContent = 'Plain Text';", "tags": [ "dom", "web" ] }, { "input": "inner html dom 98", "output": "elem.innerHTML = '

New Content

'; elem.textContent = 'Plain Text';", "tags": [ "dom", "web" ] }, { "input": "event listener dom 99", "output": "button.addEventListener('click', () => { console.log('Clicked'); });", "tags": [ "dom", "web" ] }, { "input": "create element dom 100", "output": "const div = document.createElement('div'); div.textContent = 'Hello'; document.body.appendChild(div);", "tags": [ "dom", "web" ] }, { "input": "create element dom 101", "output": "const div = document.createElement('div'); div.textContent = 'Hello'; document.body.appendChild(div);", "tags": [ "dom", "web" ] }, { "input": "inner html dom 102", "output": "elem.innerHTML = '

New Content

'; elem.textContent = 'Plain Text';", "tags": [ "dom", "web" ] }, { "input": "modify style dom 103", "output": "elem.style.color = 'red'; elem.style.display = 'none'; elem.classList.add('active');", "tags": [ "dom", "web" ] }, { "input": "inner html dom 104", "output": "elem.innerHTML = '

New Content

'; elem.textContent = 'Plain Text';", "tags": [ "dom", "web" ] }, { "input": "create element dom 105", "output": "const div = document.createElement('div'); div.textContent = 'Hello'; document.body.appendChild(div);", "tags": [ "dom", "web" ] }, { "input": "modify style dom 106", "output": "elem.style.color = 'red'; elem.style.display = 'none'; elem.classList.add('active');", "tags": [ "dom", "web" ] }, { "input": "inner html dom 107", "output": "elem.innerHTML = '

New Content

'; elem.textContent = 'Plain Text';", "tags": [ "dom", "web" ] }, { "input": "modify style dom 108", "output": "elem.style.color = 'red'; elem.style.display = 'none'; elem.classList.add('active');", "tags": [ "dom", "web" ] }, { "input": "inner html dom 109", "output": "elem.innerHTML = '

New Content

'; elem.textContent = 'Plain Text';", "tags": [ "dom", "web" ] }, { "input": "modify style dom 110", "output": "elem.style.color = 'red'; elem.style.display = 'none'; elem.classList.add('active');", "tags": [ "dom", "web" ] }, { "input": "inner html dom 111", "output": "elem.innerHTML = '

New Content

'; elem.textContent = 'Plain Text';", "tags": [ "dom", "web" ] }, { "input": "select element dom 112", "output": "const elem = document.getElementById('id'); const elem2 = document.querySelector('.class');", "tags": [ "dom", "web" ] }, { "input": "select element dom 113", "output": "const elem = document.getElementById('id'); const elem2 = document.querySelector('.class');", "tags": [ "dom", "web" ] }, { "input": "modify style dom 114", "output": "elem.style.color = 'red'; elem.style.display = 'none'; elem.classList.add('active');", "tags": [ "dom", "web" ] }, { "input": "create element dom 115", "output": "const div = document.createElement('div'); div.textContent = 'Hello'; document.body.appendChild(div);", "tags": [ "dom", "web" ] }, { "input": "modify style dom 116", "output": "elem.style.color = 'red'; elem.style.display = 'none'; elem.classList.add('active');", "tags": [ "dom", "web" ] }, { "input": "select element dom 117", "output": "const elem = document.getElementById('id'); const elem2 = document.querySelector('.class');", "tags": [ "dom", "web" ] }, { "input": "create element dom 118", "output": "const div = document.createElement('div'); div.textContent = 'Hello'; document.body.appendChild(div);", "tags": [ "dom", "web" ] }, { "input": "create element dom 119", "output": "const div = document.createElement('div'); div.textContent = 'Hello'; document.body.appendChild(div);", "tags": [ "dom", "web" ] }, { "input": "modify style dom 120", "output": "elem.style.color = 'red'; elem.style.display = 'none'; elem.classList.add('active');", "tags": [ "dom", "web" ] }, { "input": "event listener dom 121", "output": "button.addEventListener('click', () => { console.log('Clicked'); });", "tags": [ "dom", "web" ] }, { "input": "modify style dom 122", "output": "elem.style.color = 'red'; elem.style.display = 'none'; elem.classList.add('active');", "tags": [ "dom", "web" ] }, { "input": "select element dom 123", "output": "const elem = document.getElementById('id'); const elem2 = document.querySelector('.class');", "tags": [ "dom", "web" ] }, { "input": "select element dom 124", "output": "const elem = document.getElementById('id'); const elem2 = document.querySelector('.class');", "tags": [ "dom", "web" ] }, { "input": "create element dom 125", "output": "const div = document.createElement('div'); div.textContent = 'Hello'; document.body.appendChild(div);", "tags": [ "dom", "web" ] }, { "input": "select element dom 126", "output": "const elem = document.getElementById('id'); const elem2 = document.querySelector('.class');", "tags": [ "dom", "web" ] }, { "input": "create element dom 127", "output": "const div = document.createElement('div'); div.textContent = 'Hello'; document.body.appendChild(div);", "tags": [ "dom", "web" ] }, { "input": "select element dom 128", "output": "const elem = document.getElementById('id'); const elem2 = document.querySelector('.class');", "tags": [ "dom", "web" ] }, { "input": "create element dom 129", "output": "const div = document.createElement('div'); div.textContent = 'Hello'; document.body.appendChild(div);", "tags": [ "dom", "web" ] }, { "input": "select element dom 130", "output": "const elem = document.getElementById('id'); const elem2 = document.querySelector('.class');", "tags": [ "dom", "web" ] }, { "input": "event listener dom 131", "output": "button.addEventListener('click', () => { console.log('Clicked'); });", "tags": [ "dom", "web" ] }, { "input": "inner html dom 132", "output": "elem.innerHTML = '

New Content

'; elem.textContent = 'Plain Text';", "tags": [ "dom", "web" ] }, { "input": "modify style dom 133", "output": "elem.style.color = 'red'; elem.style.display = 'none'; elem.classList.add('active');", "tags": [ "dom", "web" ] }, { "input": "select element dom 134", "output": "const elem = document.getElementById('id'); const elem2 = document.querySelector('.class');", "tags": [ "dom", "web" ] }, { "input": "create element dom 135", "output": "const div = document.createElement('div'); div.textContent = 'Hello'; document.body.appendChild(div);", "tags": [ "dom", "web" ] }, { "input": "modify style dom 136", "output": "elem.style.color = 'red'; elem.style.display = 'none'; elem.classList.add('active');", "tags": [ "dom", "web" ] }, { "input": "modify style dom 137", "output": "elem.style.color = 'red'; elem.style.display = 'none'; elem.classList.add('active');", "tags": [ "dom", "web" ] }, { "input": "create element dom 138", "output": "const div = document.createElement('div'); div.textContent = 'Hello'; document.body.appendChild(div);", "tags": [ "dom", "web" ] }, { "input": "create element dom 139", "output": "const div = document.createElement('div'); div.textContent = 'Hello'; document.body.appendChild(div);", "tags": [ "dom", "web" ] }, { "input": "select element dom 140", "output": "const elem = document.getElementById('id'); const elem2 = document.querySelector('.class');", "tags": [ "dom", "web" ] }, { "input": "create element dom 141", "output": "const div = document.createElement('div'); div.textContent = 'Hello'; document.body.appendChild(div);", "tags": [ "dom", "web" ] }, { "input": "create element dom 142", "output": "const div = document.createElement('div'); div.textContent = 'Hello'; document.body.appendChild(div);", "tags": [ "dom", "web" ] }, { "input": "modify style dom 143", "output": "elem.style.color = 'red'; elem.style.display = 'none'; elem.classList.add('active');", "tags": [ "dom", "web" ] }, { "input": "event listener dom 144", "output": "button.addEventListener('click', () => { console.log('Clicked'); });", "tags": [ "dom", "web" ] }, { "input": "modify style dom 145", "output": "elem.style.color = 'red'; elem.style.display = 'none'; elem.classList.add('active');", "tags": [ "dom", "web" ] }, { "input": "modify style dom 146", "output": "elem.style.color = 'red'; elem.style.display = 'none'; elem.classList.add('active');", "tags": [ "dom", "web" ] }, { "input": "select element dom 147", "output": "const elem = document.getElementById('id'); const elem2 = document.querySelector('.class');", "tags": [ "dom", "web" ] }, { "input": "modify style dom 148", "output": "elem.style.color = 'red'; elem.style.display = 'none'; elem.classList.add('active');", "tags": [ "dom", "web" ] }, { "input": "event listener dom 149", "output": "button.addEventListener('click', () => { console.log('Clicked'); });", "tags": [ "dom", "web" ] }, { "input": "class definition class 0", "output": "class Car { constructor(brand) { this.brand = brand; } }", "tags": [ "oop", "classes" ] }, { "input": "class definition class 1", "output": "class Car { constructor(brand) { this.brand = brand; } }", "tags": [ "oop", "classes" ] }, { "input": "inheritance class 2", "output": "class Vehicle { } class Car extends Vehicle { }", "tags": [ "oop", "classes" ] }, { "input": "inheritance class 3", "output": "class Vehicle { } class Car extends Vehicle { }", "tags": [ "oop", "classes" ] }, { "input": "static method class 4", "output": "class Math { static add(a, b) { return a + b; } }", "tags": [ "oop", "classes" ] }, { "input": "inheritance class 5", "output": "class Vehicle { } class Car extends Vehicle { }", "tags": [ "oop", "classes" ] }, { "input": "class definition class 6", "output": "class Car { constructor(brand) { this.brand = brand; } }", "tags": [ "oop", "classes" ] }, { "input": "getter setter class 7", "output": "class Circle { get area() { return 3.14 * this.r ** 2; } }", "tags": [ "oop", "classes" ] }, { "input": "class definition class 8", "output": "class Car { constructor(brand) { this.brand = brand; } }", "tags": [ "oop", "classes" ] }, { "input": "inheritance class 9", "output": "class Vehicle { } class Car extends Vehicle { }", "tags": [ "oop", "classes" ] }, { "input": "getter setter class 10", "output": "class Circle { get area() { return 3.14 * this.r ** 2; } }", "tags": [ "oop", "classes" ] }, { "input": "getter setter class 11", "output": "class Circle { get area() { return 3.14 * this.r ** 2; } }", "tags": [ "oop", "classes" ] }, { "input": "inheritance class 12", "output": "class Vehicle { } class Car extends Vehicle { }", "tags": [ "oop", "classes" ] }, { "input": "class definition class 13", "output": "class Car { constructor(brand) { this.brand = brand; } }", "tags": [ "oop", "classes" ] }, { "input": "getter setter class 14", "output": "class Circle { get area() { return 3.14 * this.r ** 2; } }", "tags": [ "oop", "classes" ] }, { "input": "getter setter class 15", "output": "class Circle { get area() { return 3.14 * this.r ** 2; } }", "tags": [ "oop", "classes" ] }, { "input": "inheritance class 16", "output": "class Vehicle { } class Car extends Vehicle { }", "tags": [ "oop", "classes" ] }, { "input": "class definition class 17", "output": "class Car { constructor(brand) { this.brand = brand; } }", "tags": [ "oop", "classes" ] }, { "input": "static method class 18", "output": "class Math { static add(a, b) { return a + b; } }", "tags": [ "oop", "classes" ] }, { "input": "class definition class 19", "output": "class Car { constructor(brand) { this.brand = brand; } }", "tags": [ "oop", "classes" ] }, { "input": "static method class 20", "output": "class Math { static add(a, b) { return a + b; } }", "tags": [ "oop", "classes" ] }, { "input": "class definition class 21", "output": "class Car { constructor(brand) { this.brand = brand; } }", "tags": [ "oop", "classes" ] }, { "input": "getter setter class 22", "output": "class Circle { get area() { return 3.14 * this.r ** 2; } }", "tags": [ "oop", "classes" ] }, { "input": "class definition class 23", "output": "class Car { constructor(brand) { this.brand = brand; } }", "tags": [ "oop", "classes" ] }, { "input": "static method class 24", "output": "class Math { static add(a, b) { return a + b; } }", "tags": [ "oop", "classes" ] }, { "input": "inheritance class 25", "output": "class Vehicle { } class Car extends Vehicle { }", "tags": [ "oop", "classes" ] }, { "input": "class definition class 26", "output": "class Car { constructor(brand) { this.brand = brand; } }", "tags": [ "oop", "classes" ] }, { "input": "class definition class 27", "output": "class Car { constructor(brand) { this.brand = brand; } }", "tags": [ "oop", "classes" ] }, { "input": "static method class 28", "output": "class Math { static add(a, b) { return a + b; } }", "tags": [ "oop", "classes" ] }, { "input": "class definition class 29", "output": "class Car { constructor(brand) { this.brand = brand; } }", "tags": [ "oop", "classes" ] }, { "input": "inheritance class 30", "output": "class Vehicle { } class Car extends Vehicle { }", "tags": [ "oop", "classes" ] }, { "input": "inheritance class 31", "output": "class Vehicle { } class Car extends Vehicle { }", "tags": [ "oop", "classes" ] }, { "input": "class definition class 32", "output": "class Car { constructor(brand) { this.brand = brand; } }", "tags": [ "oop", "classes" ] }, { "input": "static method class 33", "output": "class Math { static add(a, b) { return a + b; } }", "tags": [ "oop", "classes" ] }, { "input": "static method class 34", "output": "class Math { static add(a, b) { return a + b; } }", "tags": [ "oop", "classes" ] }, { "input": "class definition class 35", "output": "class Car { constructor(brand) { this.brand = brand; } }", "tags": [ "oop", "classes" ] }, { "input": "getter setter class 36", "output": "class Circle { get area() { return 3.14 * this.r ** 2; } }", "tags": [ "oop", "classes" ] }, { "input": "static method class 37", "output": "class Math { static add(a, b) { return a + b; } }", "tags": [ "oop", "classes" ] }, { "input": "getter setter class 38", "output": "class Circle { get area() { return 3.14 * this.r ** 2; } }", "tags": [ "oop", "classes" ] }, { "input": "class definition class 39", "output": "class Car { constructor(brand) { this.brand = brand; } }", "tags": [ "oop", "classes" ] }, { "input": "getter setter class 40", "output": "class Circle { get area() { return 3.14 * this.r ** 2; } }", "tags": [ "oop", "classes" ] }, { "input": "class definition class 41", "output": "class Car { constructor(brand) { this.brand = brand; } }", "tags": [ "oop", "classes" ] }, { "input": "getter setter class 42", "output": "class Circle { get area() { return 3.14 * this.r ** 2; } }", "tags": [ "oop", "classes" ] }, { "input": "inheritance class 43", "output": "class Vehicle { } class Car extends Vehicle { }", "tags": [ "oop", "classes" ] }, { "input": "inheritance class 44", "output": "class Vehicle { } class Car extends Vehicle { }", "tags": [ "oop", "classes" ] }, { "input": "static method class 45", "output": "class Math { static add(a, b) { return a + b; } }", "tags": [ "oop", "classes" ] }, { "input": "inheritance class 46", "output": "class Vehicle { } class Car extends Vehicle { }", "tags": [ "oop", "classes" ] }, { "input": "class definition class 47", "output": "class Car { constructor(brand) { this.brand = brand; } }", "tags": [ "oop", "classes" ] }, { "input": "getter setter class 48", "output": "class Circle { get area() { return 3.14 * this.r ** 2; } }", "tags": [ "oop", "classes" ] }, { "input": "class definition class 49", "output": "class Car { constructor(brand) { this.brand = brand; } }", "tags": [ "oop", "classes" ] }, { "input": "static method class 50", "output": "class Math { static add(a, b) { return a + b; } }", "tags": [ "oop", "classes" ] }, { "input": "class definition class 51", "output": "class Car { constructor(brand) { this.brand = brand; } }", "tags": [ "oop", "classes" ] }, { "input": "inheritance class 52", "output": "class Vehicle { } class Car extends Vehicle { }", "tags": [ "oop", "classes" ] }, { "input": "static method class 53", "output": "class Math { static add(a, b) { return a + b; } }", "tags": [ "oop", "classes" ] }, { "input": "inheritance class 54", "output": "class Vehicle { } class Car extends Vehicle { }", "tags": [ "oop", "classes" ] }, { "input": "getter setter class 55", "output": "class Circle { get area() { return 3.14 * this.r ** 2; } }", "tags": [ "oop", "classes" ] }, { "input": "class definition class 56", "output": "class Car { constructor(brand) { this.brand = brand; } }", "tags": [ "oop", "classes" ] }, { "input": "static method class 57", "output": "class Math { static add(a, b) { return a + b; } }", "tags": [ "oop", "classes" ] }, { "input": "inheritance class 58", "output": "class Vehicle { } class Car extends Vehicle { }", "tags": [ "oop", "classes" ] }, { "input": "static method class 59", "output": "class Math { static add(a, b) { return a + b; } }", "tags": [ "oop", "classes" ] }, { "input": "getter setter class 60", "output": "class Circle { get area() { return 3.14 * this.r ** 2; } }", "tags": [ "oop", "classes" ] }, { "input": "getter setter class 61", "output": "class Circle { get area() { return 3.14 * this.r ** 2; } }", "tags": [ "oop", "classes" ] }, { "input": "getter setter class 62", "output": "class Circle { get area() { return 3.14 * this.r ** 2; } }", "tags": [ "oop", "classes" ] }, { "input": "class definition class 63", "output": "class Car { constructor(brand) { this.brand = brand; } }", "tags": [ "oop", "classes" ] }, { "input": "inheritance class 64", "output": "class Vehicle { } class Car extends Vehicle { }", "tags": [ "oop", "classes" ] }, { "input": "static method class 65", "output": "class Math { static add(a, b) { return a + b; } }", "tags": [ "oop", "classes" ] }, { "input": "static method class 66", "output": "class Math { static add(a, b) { return a + b; } }", "tags": [ "oop", "classes" ] }, { "input": "static method class 67", "output": "class Math { static add(a, b) { return a + b; } }", "tags": [ "oop", "classes" ] }, { "input": "class definition class 68", "output": "class Car { constructor(brand) { this.brand = brand; } }", "tags": [ "oop", "classes" ] }, { "input": "inheritance class 69", "output": "class Vehicle { } class Car extends Vehicle { }", "tags": [ "oop", "classes" ] }, { "input": "class definition class 70", "output": "class Car { constructor(brand) { this.brand = brand; } }", "tags": [ "oop", "classes" ] }, { "input": "static method class 71", "output": "class Math { static add(a, b) { return a + b; } }", "tags": [ "oop", "classes" ] }, { "input": "class definition class 72", "output": "class Car { constructor(brand) { this.brand = brand; } }", "tags": [ "oop", "classes" ] }, { "input": "inheritance class 73", "output": "class Vehicle { } class Car extends Vehicle { }", "tags": [ "oop", "classes" ] }, { "input": "class definition class 74", "output": "class Car { constructor(brand) { this.brand = brand; } }", "tags": [ "oop", "classes" ] }, { "input": "getter setter class 75", "output": "class Circle { get area() { return 3.14 * this.r ** 2; } }", "tags": [ "oop", "classes" ] }, { "input": "getter setter class 76", "output": "class Circle { get area() { return 3.14 * this.r ** 2; } }", "tags": [ "oop", "classes" ] }, { "input": "inheritance class 77", "output": "class Vehicle { } class Car extends Vehicle { }", "tags": [ "oop", "classes" ] }, { "input": "getter setter class 78", "output": "class Circle { get area() { return 3.14 * this.r ** 2; } }", "tags": [ "oop", "classes" ] }, { "input": "static method class 79", "output": "class Math { static add(a, b) { return a + b; } }", "tags": [ "oop", "classes" ] }, { "input": "class definition class 80", "output": "class Car { constructor(brand) { this.brand = brand; } }", "tags": [ "oop", "classes" ] }, { "input": "class definition class 81", "output": "class Car { constructor(brand) { this.brand = brand; } }", "tags": [ "oop", "classes" ] }, { "input": "static method class 82", "output": "class Math { static add(a, b) { return a + b; } }", "tags": [ "oop", "classes" ] }, { "input": "getter setter class 83", "output": "class Circle { get area() { return 3.14 * this.r ** 2; } }", "tags": [ "oop", "classes" ] }, { "input": "inheritance class 84", "output": "class Vehicle { } class Car extends Vehicle { }", "tags": [ "oop", "classes" ] }, { "input": "inheritance class 85", "output": "class Vehicle { } class Car extends Vehicle { }", "tags": [ "oop", "classes" ] }, { "input": "static method class 86", "output": "class Math { static add(a, b) { return a + b; } }", "tags": [ "oop", "classes" ] }, { "input": "getter setter class 87", "output": "class Circle { get area() { return 3.14 * this.r ** 2; } }", "tags": [ "oop", "classes" ] }, { "input": "getter setter class 88", "output": "class Circle { get area() { return 3.14 * this.r ** 2; } }", "tags": [ "oop", "classes" ] }, { "input": "static method class 89", "output": "class Math { static add(a, b) { return a + b; } }", "tags": [ "oop", "classes" ] }, { "input": "static method class 90", "output": "class Math { static add(a, b) { return a + b; } }", "tags": [ "oop", "classes" ] }, { "input": "class definition class 91", "output": "class Car { constructor(brand) { this.brand = brand; } }", "tags": [ "oop", "classes" ] }, { "input": "class definition class 92", "output": "class Car { constructor(brand) { this.brand = brand; } }", "tags": [ "oop", "classes" ] }, { "input": "class definition class 93", "output": "class Car { constructor(brand) { this.brand = brand; } }", "tags": [ "oop", "classes" ] }, { "input": "inheritance class 94", "output": "class Vehicle { } class Car extends Vehicle { }", "tags": [ "oop", "classes" ] }, { "input": "class definition class 95", "output": "class Car { constructor(brand) { this.brand = brand; } }", "tags": [ "oop", "classes" ] }, { "input": "getter setter class 96", "output": "class Circle { get area() { return 3.14 * this.r ** 2; } }", "tags": [ "oop", "classes" ] }, { "input": "class definition class 97", "output": "class Car { constructor(brand) { this.brand = brand; } }", "tags": [ "oop", "classes" ] }, { "input": "class definition class 98", "output": "class Car { constructor(brand) { this.brand = brand; } }", "tags": [ "oop", "classes" ] }, { "input": "getter setter class 99", "output": "class Circle { get area() { return 3.14 * this.r ** 2; } }", "tags": [ "oop", "classes" ] }, { "input": "class definition class 100", "output": "class Car { constructor(brand) { this.brand = brand; } }", "tags": [ "oop", "classes" ] }, { "input": "getter setter class 101", "output": "class Circle { get area() { return 3.14 * this.r ** 2; } }", "tags": [ "oop", "classes" ] }, { "input": "inheritance class 102", "output": "class Vehicle { } class Car extends Vehicle { }", "tags": [ "oop", "classes" ] }, { "input": "class definition class 103", "output": "class Car { constructor(brand) { this.brand = brand; } }", "tags": [ "oop", "classes" ] }, { "input": "static method class 104", "output": "class Math { static add(a, b) { return a + b; } }", "tags": [ "oop", "classes" ] }, { "input": "inheritance class 105", "output": "class Vehicle { } class Car extends Vehicle { }", "tags": [ "oop", "classes" ] }, { "input": "class definition class 106", "output": "class Car { constructor(brand) { this.brand = brand; } }", "tags": [ "oop", "classes" ] }, { "input": "getter setter class 107", "output": "class Circle { get area() { return 3.14 * this.r ** 2; } }", "tags": [ "oop", "classes" ] }, { "input": "static method class 108", "output": "class Math { static add(a, b) { return a + b; } }", "tags": [ "oop", "classes" ] }, { "input": "getter setter class 109", "output": "class Circle { get area() { return 3.14 * this.r ** 2; } }", "tags": [ "oop", "classes" ] }, { "input": "class definition class 110", "output": "class Car { constructor(brand) { this.brand = brand; } }", "tags": [ "oop", "classes" ] }, { "input": "class definition class 111", "output": "class Car { constructor(brand) { this.brand = brand; } }", "tags": [ "oop", "classes" ] }, { "input": "getter setter class 112", "output": "class Circle { get area() { return 3.14 * this.r ** 2; } }", "tags": [ "oop", "classes" ] }, { "input": "class definition class 113", "output": "class Car { constructor(brand) { this.brand = brand; } }", "tags": [ "oop", "classes" ] }, { "input": "class definition class 114", "output": "class Car { constructor(brand) { this.brand = brand; } }", "tags": [ "oop", "classes" ] }, { "input": "class definition class 115", "output": "class Car { constructor(brand) { this.brand = brand; } }", "tags": [ "oop", "classes" ] }, { "input": "getter setter class 116", "output": "class Circle { get area() { return 3.14 * this.r ** 2; } }", "tags": [ "oop", "classes" ] }, { "input": "class definition class 117", "output": "class Car { constructor(brand) { this.brand = brand; } }", "tags": [ "oop", "classes" ] }, { "input": "getter setter class 118", "output": "class Circle { get area() { return 3.14 * this.r ** 2; } }", "tags": [ "oop", "classes" ] }, { "input": "getter setter class 119", "output": "class Circle { get area() { return 3.14 * this.r ** 2; } }", "tags": [ "oop", "classes" ] }, { "input": "static method class 120", "output": "class Math { static add(a, b) { return a + b; } }", "tags": [ "oop", "classes" ] }, { "input": "inheritance class 121", "output": "class Vehicle { } class Car extends Vehicle { }", "tags": [ "oop", "classes" ] }, { "input": "getter setter class 122", "output": "class Circle { get area() { return 3.14 * this.r ** 2; } }", "tags": [ "oop", "classes" ] }, { "input": "static method class 123", "output": "class Math { static add(a, b) { return a + b; } }", "tags": [ "oop", "classes" ] }, { "input": "getter setter class 124", "output": "class Circle { get area() { return 3.14 * this.r ** 2; } }", "tags": [ "oop", "classes" ] }, { "input": "inheritance class 125", "output": "class Vehicle { } class Car extends Vehicle { }", "tags": [ "oop", "classes" ] }, { "input": "class definition class 126", "output": "class Car { constructor(brand) { this.brand = brand; } }", "tags": [ "oop", "classes" ] }, { "input": "getter setter class 127", "output": "class Circle { get area() { return 3.14 * this.r ** 2; } }", "tags": [ "oop", "classes" ] }, { "input": "getter setter class 128", "output": "class Circle { get area() { return 3.14 * this.r ** 2; } }", "tags": [ "oop", "classes" ] }, { "input": "inheritance class 129", "output": "class Vehicle { } class Car extends Vehicle { }", "tags": [ "oop", "classes" ] }, { "input": "getter setter class 130", "output": "class Circle { get area() { return 3.14 * this.r ** 2; } }", "tags": [ "oop", "classes" ] }, { "input": "getter setter class 131", "output": "class Circle { get area() { return 3.14 * this.r ** 2; } }", "tags": [ "oop", "classes" ] }, { "input": "class definition class 132", "output": "class Car { constructor(brand) { this.brand = brand; } }", "tags": [ "oop", "classes" ] }, { "input": "inheritance class 133", "output": "class Vehicle { } class Car extends Vehicle { }", "tags": [ "oop", "classes" ] }, { "input": "inheritance class 134", "output": "class Vehicle { } class Car extends Vehicle { }", "tags": [ "oop", "classes" ] }, { "input": "inheritance class 135", "output": "class Vehicle { } class Car extends Vehicle { }", "tags": [ "oop", "classes" ] }, { "input": "class definition class 136", "output": "class Car { constructor(brand) { this.brand = brand; } }", "tags": [ "oop", "classes" ] }, { "input": "class definition class 137", "output": "class Car { constructor(brand) { this.brand = brand; } }", "tags": [ "oop", "classes" ] }, { "input": "static method class 138", "output": "class Math { static add(a, b) { return a + b; } }", "tags": [ "oop", "classes" ] }, { "input": "class definition class 139", "output": "class Car { constructor(brand) { this.brand = brand; } }", "tags": [ "oop", "classes" ] }, { "input": "class definition class 140", "output": "class Car { constructor(brand) { this.brand = brand; } }", "tags": [ "oop", "classes" ] }, { "input": "static method class 141", "output": "class Math { static add(a, b) { return a + b; } }", "tags": [ "oop", "classes" ] }, { "input": "getter setter class 142", "output": "class Circle { get area() { return 3.14 * this.r ** 2; } }", "tags": [ "oop", "classes" ] }, { "input": "class definition class 143", "output": "class Car { constructor(brand) { this.brand = brand; } }", "tags": [ "oop", "classes" ] }, { "input": "class definition class 144", "output": "class Car { constructor(brand) { this.brand = brand; } }", "tags": [ "oop", "classes" ] }, { "input": "static method class 145", "output": "class Math { static add(a, b) { return a + b; } }", "tags": [ "oop", "classes" ] }, { "input": "getter setter class 146", "output": "class Circle { get area() { return 3.14 * this.r ** 2; } }", "tags": [ "oop", "classes" ] }, { "input": "getter setter class 147", "output": "class Circle { get area() { return 3.14 * this.r ** 2; } }", "tags": [ "oop", "classes" ] }, { "input": "inheritance class 148", "output": "class Vehicle { } class Car extends Vehicle { }", "tags": [ "oop", "classes" ] }, { "input": "inheritance class 149", "output": "class Vehicle { } class Car extends Vehicle { }", "tags": [ "oop", "classes" ] }, { "input": "closure hof 0", "output": "function outer(x) { return function inner(y) { return x + y; }; }", "tags": [ "higher_order", "functional" ] }, { "input": "closure hof 1", "output": "function outer(x) { return function inner(y) { return x + y; }; }", "tags": [ "higher_order", "functional" ] }, { "input": "compose hof 2", "output": "const compose = (f, g) => x => f(g(x));", "tags": [ "higher_order", "functional" ] }, { "input": "map filter reduce hof 3", "output": "arr.map(x => x * 2).filter(x => x > 5).reduce((a, b) => a + b);", "tags": [ "higher_order", "functional" ] }, { "input": "map filter reduce hof 4", "output": "arr.map(x => x * 2).filter(x => x > 5).reduce((a, b) => a + b);", "tags": [ "higher_order", "functional" ] }, { "input": "currying hof 5", "output": "const add = a => b => a + b; const add5 = add(5); console.log(add5(3));", "tags": [ "higher_order", "functional" ] }, { "input": "compose hof 6", "output": "const compose = (f, g) => x => f(g(x));", "tags": [ "higher_order", "functional" ] }, { "input": "currying hof 7", "output": "const add = a => b => a + b; const add5 = add(5); console.log(add5(3));", "tags": [ "higher_order", "functional" ] }, { "input": "closure hof 8", "output": "function outer(x) { return function inner(y) { return x + y; }; }", "tags": [ "higher_order", "functional" ] }, { "input": "compose hof 9", "output": "const compose = (f, g) => x => f(g(x));", "tags": [ "higher_order", "functional" ] }, { "input": "closure hof 10", "output": "function outer(x) { return function inner(y) { return x + y; }; }", "tags": [ "higher_order", "functional" ] }, { "input": "closure hof 11", "output": "function outer(x) { return function inner(y) { return x + y; }; }", "tags": [ "higher_order", "functional" ] }, { "input": "compose hof 12", "output": "const compose = (f, g) => x => f(g(x));", "tags": [ "higher_order", "functional" ] }, { "input": "closure hof 13", "output": "function outer(x) { return function inner(y) { return x + y; }; }", "tags": [ "higher_order", "functional" ] }, { "input": "currying hof 14", "output": "const add = a => b => a + b; const add5 = add(5); console.log(add5(3));", "tags": [ "higher_order", "functional" ] }, { "input": "currying hof 15", "output": "const add = a => b => a + b; const add5 = add(5); console.log(add5(3));", "tags": [ "higher_order", "functional" ] }, { "input": "map filter reduce hof 16", "output": "arr.map(x => x * 2).filter(x => x > 5).reduce((a, b) => a + b);", "tags": [ "higher_order", "functional" ] }, { "input": "map filter reduce hof 17", "output": "arr.map(x => x * 2).filter(x => x > 5).reduce((a, b) => a + b);", "tags": [ "higher_order", "functional" ] }, { "input": "currying hof 18", "output": "const add = a => b => a + b; const add5 = add(5); console.log(add5(3));", "tags": [ "higher_order", "functional" ] }, { "input": "compose hof 19", "output": "const compose = (f, g) => x => f(g(x));", "tags": [ "higher_order", "functional" ] }, { "input": "compose hof 20", "output": "const compose = (f, g) => x => f(g(x));", "tags": [ "higher_order", "functional" ] }, { "input": "map filter reduce hof 21", "output": "arr.map(x => x * 2).filter(x => x > 5).reduce((a, b) => a + b);", "tags": [ "higher_order", "functional" ] }, { "input": "currying hof 22", "output": "const add = a => b => a + b; const add5 = add(5); console.log(add5(3));", "tags": [ "higher_order", "functional" ] }, { "input": "currying hof 23", "output": "const add = a => b => a + b; const add5 = add(5); console.log(add5(3));", "tags": [ "higher_order", "functional" ] }, { "input": "currying hof 24", "output": "const add = a => b => a + b; const add5 = add(5); console.log(add5(3));", "tags": [ "higher_order", "functional" ] }, { "input": "compose hof 25", "output": "const compose = (f, g) => x => f(g(x));", "tags": [ "higher_order", "functional" ] }, { "input": "currying hof 26", "output": "const add = a => b => a + b; const add5 = add(5); console.log(add5(3));", "tags": [ "higher_order", "functional" ] }, { "input": "compose hof 27", "output": "const compose = (f, g) => x => f(g(x));", "tags": [ "higher_order", "functional" ] }, { "input": "closure hof 28", "output": "function outer(x) { return function inner(y) { return x + y; }; }", "tags": [ "higher_order", "functional" ] }, { "input": "closure hof 29", "output": "function outer(x) { return function inner(y) { return x + y; }; }", "tags": [ "higher_order", "functional" ] }, { "input": "compose hof 30", "output": "const compose = (f, g) => x => f(g(x));", "tags": [ "higher_order", "functional" ] }, { "input": "closure hof 31", "output": "function outer(x) { return function inner(y) { return x + y; }; }", "tags": [ "higher_order", "functional" ] }, { "input": "map filter reduce hof 32", "output": "arr.map(x => x * 2).filter(x => x > 5).reduce((a, b) => a + b);", "tags": [ "higher_order", "functional" ] }, { "input": "compose hof 33", "output": "const compose = (f, g) => x => f(g(x));", "tags": [ "higher_order", "functional" ] }, { "input": "compose hof 34", "output": "const compose = (f, g) => x => f(g(x));", "tags": [ "higher_order", "functional" ] }, { "input": "map filter reduce hof 35", "output": "arr.map(x => x * 2).filter(x => x > 5).reduce((a, b) => a + b);", "tags": [ "higher_order", "functional" ] }, { "input": "currying hof 36", "output": "const add = a => b => a + b; const add5 = add(5); console.log(add5(3));", "tags": [ "higher_order", "functional" ] }, { "input": "closure hof 37", "output": "function outer(x) { return function inner(y) { return x + y; }; }", "tags": [ "higher_order", "functional" ] }, { "input": "currying hof 38", "output": "const add = a => b => a + b; const add5 = add(5); console.log(add5(3));", "tags": [ "higher_order", "functional" ] }, { "input": "closure hof 39", "output": "function outer(x) { return function inner(y) { return x + y; }; }", "tags": [ "higher_order", "functional" ] }, { "input": "map filter reduce hof 40", "output": "arr.map(x => x * 2).filter(x => x > 5).reduce((a, b) => a + b);", "tags": [ "higher_order", "functional" ] }, { "input": "map filter reduce hof 41", "output": "arr.map(x => x * 2).filter(x => x > 5).reduce((a, b) => a + b);", "tags": [ "higher_order", "functional" ] }, { "input": "closure hof 42", "output": "function outer(x) { return function inner(y) { return x + y; }; }", "tags": [ "higher_order", "functional" ] }, { "input": "currying hof 43", "output": "const add = a => b => a + b; const add5 = add(5); console.log(add5(3));", "tags": [ "higher_order", "functional" ] }, { "input": "closure hof 44", "output": "function outer(x) { return function inner(y) { return x + y; }; }", "tags": [ "higher_order", "functional" ] }, { "input": "map filter reduce hof 45", "output": "arr.map(x => x * 2).filter(x => x > 5).reduce((a, b) => a + b);", "tags": [ "higher_order", "functional" ] }, { "input": "compose hof 46", "output": "const compose = (f, g) => x => f(g(x));", "tags": [ "higher_order", "functional" ] }, { "input": "closure hof 47", "output": "function outer(x) { return function inner(y) { return x + y; }; }", "tags": [ "higher_order", "functional" ] }, { "input": "compose hof 48", "output": "const compose = (f, g) => x => f(g(x));", "tags": [ "higher_order", "functional" ] }, { "input": "map filter reduce hof 49", "output": "arr.map(x => x * 2).filter(x => x > 5).reduce((a, b) => a + b);", "tags": [ "higher_order", "functional" ] }, { "input": "compose hof 50", "output": "const compose = (f, g) => x => f(g(x));", "tags": [ "higher_order", "functional" ] }, { "input": "map filter reduce hof 51", "output": "arr.map(x => x * 2).filter(x => x > 5).reduce((a, b) => a + b);", "tags": [ "higher_order", "functional" ] }, { "input": "map filter reduce hof 52", "output": "arr.map(x => x * 2).filter(x => x > 5).reduce((a, b) => a + b);", "tags": [ "higher_order", "functional" ] }, { "input": "currying hof 53", "output": "const add = a => b => a + b; const add5 = add(5); console.log(add5(3));", "tags": [ "higher_order", "functional" ] }, { "input": "compose hof 54", "output": "const compose = (f, g) => x => f(g(x));", "tags": [ "higher_order", "functional" ] }, { "input": "map filter reduce hof 55", "output": "arr.map(x => x * 2).filter(x => x > 5).reduce((a, b) => a + b);", "tags": [ "higher_order", "functional" ] }, { "input": "map filter reduce hof 56", "output": "arr.map(x => x * 2).filter(x => x > 5).reduce((a, b) => a + b);", "tags": [ "higher_order", "functional" ] }, { "input": "map filter reduce hof 57", "output": "arr.map(x => x * 2).filter(x => x > 5).reduce((a, b) => a + b);", "tags": [ "higher_order", "functional" ] }, { "input": "compose hof 58", "output": "const compose = (f, g) => x => f(g(x));", "tags": [ "higher_order", "functional" ] }, { "input": "compose hof 59", "output": "const compose = (f, g) => x => f(g(x));", "tags": [ "higher_order", "functional" ] }, { "input": "compose hof 60", "output": "const compose = (f, g) => x => f(g(x));", "tags": [ "higher_order", "functional" ] }, { "input": "compose hof 61", "output": "const compose = (f, g) => x => f(g(x));", "tags": [ "higher_order", "functional" ] }, { "input": "currying hof 62", "output": "const add = a => b => a + b; const add5 = add(5); console.log(add5(3));", "tags": [ "higher_order", "functional" ] }, { "input": "compose hof 63", "output": "const compose = (f, g) => x => f(g(x));", "tags": [ "higher_order", "functional" ] }, { "input": "currying hof 64", "output": "const add = a => b => a + b; const add5 = add(5); console.log(add5(3));", "tags": [ "higher_order", "functional" ] }, { "input": "closure hof 65", "output": "function outer(x) { return function inner(y) { return x + y; }; }", "tags": [ "higher_order", "functional" ] }, { "input": "map filter reduce hof 66", "output": "arr.map(x => x * 2).filter(x => x > 5).reduce((a, b) => a + b);", "tags": [ "higher_order", "functional" ] }, { "input": "closure hof 67", "output": "function outer(x) { return function inner(y) { return x + y; }; }", "tags": [ "higher_order", "functional" ] }, { "input": "currying hof 68", "output": "const add = a => b => a + b; const add5 = add(5); console.log(add5(3));", "tags": [ "higher_order", "functional" ] }, { "input": "closure hof 69", "output": "function outer(x) { return function inner(y) { return x + y; }; }", "tags": [ "higher_order", "functional" ] }, { "input": "compose hof 70", "output": "const compose = (f, g) => x => f(g(x));", "tags": [ "higher_order", "functional" ] }, { "input": "closure hof 71", "output": "function outer(x) { return function inner(y) { return x + y; }; }", "tags": [ "higher_order", "functional" ] }, { "input": "currying hof 72", "output": "const add = a => b => a + b; const add5 = add(5); console.log(add5(3));", "tags": [ "higher_order", "functional" ] }, { "input": "map filter reduce hof 73", "output": "arr.map(x => x * 2).filter(x => x > 5).reduce((a, b) => a + b);", "tags": [ "higher_order", "functional" ] }, { "input": "currying hof 74", "output": "const add = a => b => a + b; const add5 = add(5); console.log(add5(3));", "tags": [ "higher_order", "functional" ] }, { "input": "closure hof 75", "output": "function outer(x) { return function inner(y) { return x + y; }; }", "tags": [ "higher_order", "functional" ] }, { "input": "closure hof 76", "output": "function outer(x) { return function inner(y) { return x + y; }; }", "tags": [ "higher_order", "functional" ] }, { "input": "closure hof 77", "output": "function outer(x) { return function inner(y) { return x + y; }; }", "tags": [ "higher_order", "functional" ] }, { "input": "compose hof 78", "output": "const compose = (f, g) => x => f(g(x));", "tags": [ "higher_order", "functional" ] }, { "input": "compose hof 79", "output": "const compose = (f, g) => x => f(g(x));", "tags": [ "higher_order", "functional" ] }, { "input": "compose hof 80", "output": "const compose = (f, g) => x => f(g(x));", "tags": [ "higher_order", "functional" ] }, { "input": "map filter reduce hof 81", "output": "arr.map(x => x * 2).filter(x => x > 5).reduce((a, b) => a + b);", "tags": [ "higher_order", "functional" ] }, { "input": "closure hof 82", "output": "function outer(x) { return function inner(y) { return x + y; }; }", "tags": [ "higher_order", "functional" ] }, { "input": "currying hof 83", "output": "const add = a => b => a + b; const add5 = add(5); console.log(add5(3));", "tags": [ "higher_order", "functional" ] }, { "input": "closure hof 84", "output": "function outer(x) { return function inner(y) { return x + y; }; }", "tags": [ "higher_order", "functional" ] }, { "input": "compose hof 85", "output": "const compose = (f, g) => x => f(g(x));", "tags": [ "higher_order", "functional" ] }, { "input": "currying hof 86", "output": "const add = a => b => a + b; const add5 = add(5); console.log(add5(3));", "tags": [ "higher_order", "functional" ] }, { "input": "compose hof 87", "output": "const compose = (f, g) => x => f(g(x));", "tags": [ "higher_order", "functional" ] }, { "input": "closure hof 88", "output": "function outer(x) { return function inner(y) { return x + y; }; }", "tags": [ "higher_order", "functional" ] }, { "input": "compose hof 89", "output": "const compose = (f, g) => x => f(g(x));", "tags": [ "higher_order", "functional" ] }, { "input": "currying hof 90", "output": "const add = a => b => a + b; const add5 = add(5); console.log(add5(3));", "tags": [ "higher_order", "functional" ] }, { "input": "compose hof 91", "output": "const compose = (f, g) => x => f(g(x));", "tags": [ "higher_order", "functional" ] }, { "input": "compose hof 92", "output": "const compose = (f, g) => x => f(g(x));", "tags": [ "higher_order", "functional" ] }, { "input": "map filter reduce hof 93", "output": "arr.map(x => x * 2).filter(x => x > 5).reduce((a, b) => a + b);", "tags": [ "higher_order", "functional" ] }, { "input": "compose hof 94", "output": "const compose = (f, g) => x => f(g(x));", "tags": [ "higher_order", "functional" ] }, { "input": "compose hof 95", "output": "const compose = (f, g) => x => f(g(x));", "tags": [ "higher_order", "functional" ] }, { "input": "map filter reduce hof 96", "output": "arr.map(x => x * 2).filter(x => x > 5).reduce((a, b) => a + b);", "tags": [ "higher_order", "functional" ] }, { "input": "compose hof 97", "output": "const compose = (f, g) => x => f(g(x));", "tags": [ "higher_order", "functional" ] }, { "input": "compose hof 98", "output": "const compose = (f, g) => x => f(g(x));", "tags": [ "higher_order", "functional" ] }, { "input": "closure hof 99", "output": "function outer(x) { return function inner(y) { return x + y; }; }", "tags": [ "higher_order", "functional" ] }, { "input": "map filter reduce hof 100", "output": "arr.map(x => x * 2).filter(x => x > 5).reduce((a, b) => a + b);", "tags": [ "higher_order", "functional" ] }, { "input": "closure hof 101", "output": "function outer(x) { return function inner(y) { return x + y; }; }", "tags": [ "higher_order", "functional" ] }, { "input": "closure hof 102", "output": "function outer(x) { return function inner(y) { return x + y; }; }", "tags": [ "higher_order", "functional" ] }, { "input": "map filter reduce hof 103", "output": "arr.map(x => x * 2).filter(x => x > 5).reduce((a, b) => a + b);", "tags": [ "higher_order", "functional" ] }, { "input": "compose hof 104", "output": "const compose = (f, g) => x => f(g(x));", "tags": [ "higher_order", "functional" ] }, { "input": "map filter reduce hof 105", "output": "arr.map(x => x * 2).filter(x => x > 5).reduce((a, b) => a + b);", "tags": [ "higher_order", "functional" ] }, { "input": "closure hof 106", "output": "function outer(x) { return function inner(y) { return x + y; }; }", "tags": [ "higher_order", "functional" ] }, { "input": "closure hof 107", "output": "function outer(x) { return function inner(y) { return x + y; }; }", "tags": [ "higher_order", "functional" ] }, { "input": "map filter reduce hof 108", "output": "arr.map(x => x * 2).filter(x => x > 5).reduce((a, b) => a + b);", "tags": [ "higher_order", "functional" ] }, { "input": "currying hof 109", "output": "const add = a => b => a + b; const add5 = add(5); console.log(add5(3));", "tags": [ "higher_order", "functional" ] }, { "input": "map filter reduce hof 110", "output": "arr.map(x => x * 2).filter(x => x > 5).reduce((a, b) => a + b);", "tags": [ "higher_order", "functional" ] }, { "input": "currying hof 111", "output": "const add = a => b => a + b; const add5 = add(5); console.log(add5(3));", "tags": [ "higher_order", "functional" ] }, { "input": "compose hof 112", "output": "const compose = (f, g) => x => f(g(x));", "tags": [ "higher_order", "functional" ] }, { "input": "compose hof 113", "output": "const compose = (f, g) => x => f(g(x));", "tags": [ "higher_order", "functional" ] }, { "input": "compose hof 114", "output": "const compose = (f, g) => x => f(g(x));", "tags": [ "higher_order", "functional" ] }, { "input": "map filter reduce hof 115", "output": "arr.map(x => x * 2).filter(x => x > 5).reduce((a, b) => a + b);", "tags": [ "higher_order", "functional" ] }, { "input": "closure hof 116", "output": "function outer(x) { return function inner(y) { return x + y; }; }", "tags": [ "higher_order", "functional" ] }, { "input": "map filter reduce hof 117", "output": "arr.map(x => x * 2).filter(x => x > 5).reduce((a, b) => a + b);", "tags": [ "higher_order", "functional" ] }, { "input": "compose hof 118", "output": "const compose = (f, g) => x => f(g(x));", "tags": [ "higher_order", "functional" ] }, { "input": "map filter reduce hof 119", "output": "arr.map(x => x * 2).filter(x => x > 5).reduce((a, b) => a + b);", "tags": [ "higher_order", "functional" ] }, { "input": "currying hof 120", "output": "const add = a => b => a + b; const add5 = add(5); console.log(add5(3));", "tags": [ "higher_order", "functional" ] }, { "input": "currying hof 121", "output": "const add = a => b => a + b; const add5 = add(5); console.log(add5(3));", "tags": [ "higher_order", "functional" ] }, { "input": "map filter reduce hof 122", "output": "arr.map(x => x * 2).filter(x => x > 5).reduce((a, b) => a + b);", "tags": [ "higher_order", "functional" ] }, { "input": "map filter reduce hof 123", "output": "arr.map(x => x * 2).filter(x => x > 5).reduce((a, b) => a + b);", "tags": [ "higher_order", "functional" ] }, { "input": "closure hof 124", "output": "function outer(x) { return function inner(y) { return x + y; }; }", "tags": [ "higher_order", "functional" ] }, { "input": "compose hof 125", "output": "const compose = (f, g) => x => f(g(x));", "tags": [ "higher_order", "functional" ] }, { "input": "map filter reduce hof 126", "output": "arr.map(x => x * 2).filter(x => x > 5).reduce((a, b) => a + b);", "tags": [ "higher_order", "functional" ] }, { "input": "closure hof 127", "output": "function outer(x) { return function inner(y) { return x + y; }; }", "tags": [ "higher_order", "functional" ] }, { "input": "map filter reduce hof 128", "output": "arr.map(x => x * 2).filter(x => x > 5).reduce((a, b) => a + b);", "tags": [ "higher_order", "functional" ] }, { "input": "currying hof 129", "output": "const add = a => b => a + b; const add5 = add(5); console.log(add5(3));", "tags": [ "higher_order", "functional" ] }, { "input": "currying hof 130", "output": "const add = a => b => a + b; const add5 = add(5); console.log(add5(3));", "tags": [ "higher_order", "functional" ] }, { "input": "closure hof 131", "output": "function outer(x) { return function inner(y) { return x + y; }; }", "tags": [ "higher_order", "functional" ] }, { "input": "compose hof 132", "output": "const compose = (f, g) => x => f(g(x));", "tags": [ "higher_order", "functional" ] }, { "input": "compose hof 133", "output": "const compose = (f, g) => x => f(g(x));", "tags": [ "higher_order", "functional" ] }, { "input": "closure hof 134", "output": "function outer(x) { return function inner(y) { return x + y; }; }", "tags": [ "higher_order", "functional" ] }, { "input": "closure hof 135", "output": "function outer(x) { return function inner(y) { return x + y; }; }", "tags": [ "higher_order", "functional" ] }, { "input": "map filter reduce hof 136", "output": "arr.map(x => x * 2).filter(x => x > 5).reduce((a, b) => a + b);", "tags": [ "higher_order", "functional" ] }, { "input": "currying hof 137", "output": "const add = a => b => a + b; const add5 = add(5); console.log(add5(3));", "tags": [ "higher_order", "functional" ] }, { "input": "currying hof 138", "output": "const add = a => b => a + b; const add5 = add(5); console.log(add5(3));", "tags": [ "higher_order", "functional" ] }, { "input": "currying hof 139", "output": "const add = a => b => a + b; const add5 = add(5); console.log(add5(3));", "tags": [ "higher_order", "functional" ] }, { "input": "closure hof 140", "output": "function outer(x) { return function inner(y) { return x + y; }; }", "tags": [ "higher_order", "functional" ] }, { "input": "map filter reduce hof 141", "output": "arr.map(x => x * 2).filter(x => x > 5).reduce((a, b) => a + b);", "tags": [ "higher_order", "functional" ] }, { "input": "map filter reduce hof 142", "output": "arr.map(x => x * 2).filter(x => x > 5).reduce((a, b) => a + b);", "tags": [ "higher_order", "functional" ] }, { "input": "currying hof 143", "output": "const add = a => b => a + b; const add5 = add(5); console.log(add5(3));", "tags": [ "higher_order", "functional" ] }, { "input": "currying hof 144", "output": "const add = a => b => a + b; const add5 = add(5); console.log(add5(3));", "tags": [ "higher_order", "functional" ] }, { "input": "currying hof 145", "output": "const add = a => b => a + b; const add5 = add(5); console.log(add5(3));", "tags": [ "higher_order", "functional" ] }, { "input": "currying hof 146", "output": "const add = a => b => a + b; const add5 = add(5); console.log(add5(3));", "tags": [ "higher_order", "functional" ] }, { "input": "map filter reduce hof 147", "output": "arr.map(x => x * 2).filter(x => x > 5).reduce((a, b) => a + b);", "tags": [ "higher_order", "functional" ] }, { "input": "compose hof 148", "output": "const compose = (f, g) => x => f(g(x));", "tags": [ "higher_order", "functional" ] }, { "input": "compose hof 149", "output": "const compose = (f, g) => x => f(g(x));", "tags": [ "higher_order", "functional" ] }, { "input": "try catch error 0", "output": "try { risky(); } catch(err) { console.error(err); }", "tags": [ "error_handling", "exceptions" ] }, { "input": "throw error error 1", "output": "if (!valid) { throw new Error('Invalid input'); }", "tags": [ "error_handling", "exceptions" ] }, { "input": "try catch error 2", "output": "try { risky(); } catch(err) { console.error(err); }", "tags": [ "error_handling", "exceptions" ] }, { "input": "finally error 3", "output": "try { } catch(e) { } finally { cleanup(); }", "tags": [ "error_handling", "exceptions" ] }, { "input": "finally error 4", "output": "try { } catch(e) { } finally { cleanup(); }", "tags": [ "error_handling", "exceptions" ] }, { "input": "try catch error 5", "output": "try { risky(); } catch(err) { console.error(err); }", "tags": [ "error_handling", "exceptions" ] }, { "input": "throw error error 6", "output": "if (!valid) { throw new Error('Invalid input'); }", "tags": [ "error_handling", "exceptions" ] }, { "input": "try catch error 7", "output": "try { risky(); } catch(err) { console.error(err); }", "tags": [ "error_handling", "exceptions" ] }, { "input": "throw error error 8", "output": "if (!valid) { throw new Error('Invalid input'); }", "tags": [ "error_handling", "exceptions" ] }, { "input": "finally error 9", "output": "try { } catch(e) { } finally { cleanup(); }", "tags": [ "error_handling", "exceptions" ] }, { "input": "try catch error 10", "output": "try { risky(); } catch(err) { console.error(err); }", "tags": [ "error_handling", "exceptions" ] }, { "input": "finally error 11", "output": "try { } catch(e) { } finally { cleanup(); }", "tags": [ "error_handling", "exceptions" ] }, { "input": "try catch error 12", "output": "try { risky(); } catch(err) { console.error(err); }", "tags": [ "error_handling", "exceptions" ] }, { "input": "try catch error 13", "output": "try { risky(); } catch(err) { console.error(err); }", "tags": [ "error_handling", "exceptions" ] }, { "input": "finally error 14", "output": "try { } catch(e) { } finally { cleanup(); }", "tags": [ "error_handling", "exceptions" ] }, { "input": "throw error error 15", "output": "if (!valid) { throw new Error('Invalid input'); }", "tags": [ "error_handling", "exceptions" ] }, { "input": "finally error 16", "output": "try { } catch(e) { } finally { cleanup(); }", "tags": [ "error_handling", "exceptions" ] }, { "input": "throw error error 17", "output": "if (!valid) { throw new Error('Invalid input'); }", "tags": [ "error_handling", "exceptions" ] }, { "input": "try catch error 18", "output": "try { risky(); } catch(err) { console.error(err); }", "tags": [ "error_handling", "exceptions" ] }, { "input": "try catch error 19", "output": "try { risky(); } catch(err) { console.error(err); }", "tags": [ "error_handling", "exceptions" ] }, { "input": "try catch error 20", "output": "try { risky(); } catch(err) { console.error(err); }", "tags": [ "error_handling", "exceptions" ] }, { "input": "try catch error 21", "output": "try { risky(); } catch(err) { console.error(err); }", "tags": [ "error_handling", "exceptions" ] }, { "input": "throw error error 22", "output": "if (!valid) { throw new Error('Invalid input'); }", "tags": [ "error_handling", "exceptions" ] }, { "input": "finally error 23", "output": "try { } catch(e) { } finally { cleanup(); }", "tags": [ "error_handling", "exceptions" ] }, { "input": "try catch error 24", "output": "try { risky(); } catch(err) { console.error(err); }", "tags": [ "error_handling", "exceptions" ] }, { "input": "finally error 25", "output": "try { } catch(e) { } finally { cleanup(); }", "tags": [ "error_handling", "exceptions" ] }, { "input": "throw error error 26", "output": "if (!valid) { throw new Error('Invalid input'); }", "tags": [ "error_handling", "exceptions" ] }, { "input": "finally error 27", "output": "try { } catch(e) { } finally { cleanup(); }", "tags": [ "error_handling", "exceptions" ] }, { "input": "finally error 28", "output": "try { } catch(e) { } finally { cleanup(); }", "tags": [ "error_handling", "exceptions" ] }, { "input": "finally error 29", "output": "try { } catch(e) { } finally { cleanup(); }", "tags": [ "error_handling", "exceptions" ] }, { "input": "try catch error 30", "output": "try { risky(); } catch(err) { console.error(err); }", "tags": [ "error_handling", "exceptions" ] }, { "input": "try catch error 31", "output": "try { risky(); } catch(err) { console.error(err); }", "tags": [ "error_handling", "exceptions" ] }, { "input": "finally error 32", "output": "try { } catch(e) { } finally { cleanup(); }", "tags": [ "error_handling", "exceptions" ] }, { "input": "try catch error 33", "output": "try { risky(); } catch(err) { console.error(err); }", "tags": [ "error_handling", "exceptions" ] }, { "input": "throw error error 34", "output": "if (!valid) { throw new Error('Invalid input'); }", "tags": [ "error_handling", "exceptions" ] }, { "input": "throw error error 35", "output": "if (!valid) { throw new Error('Invalid input'); }", "tags": [ "error_handling", "exceptions" ] }, { "input": "throw error error 36", "output": "if (!valid) { throw new Error('Invalid input'); }", "tags": [ "error_handling", "exceptions" ] }, { "input": "try catch error 37", "output": "try { risky(); } catch(err) { console.error(err); }", "tags": [ "error_handling", "exceptions" ] }, { "input": "try catch error 38", "output": "try { risky(); } catch(err) { console.error(err); }", "tags": [ "error_handling", "exceptions" ] }, { "input": "throw error error 39", "output": "if (!valid) { throw new Error('Invalid input'); }", "tags": [ "error_handling", "exceptions" ] }, { "input": "try catch error 40", "output": "try { risky(); } catch(err) { console.error(err); }", "tags": [ "error_handling", "exceptions" ] }, { "input": "finally error 41", "output": "try { } catch(e) { } finally { cleanup(); }", "tags": [ "error_handling", "exceptions" ] }, { "input": "throw error error 42", "output": "if (!valid) { throw new Error('Invalid input'); }", "tags": [ "error_handling", "exceptions" ] }, { "input": "finally error 43", "output": "try { } catch(e) { } finally { cleanup(); }", "tags": [ "error_handling", "exceptions" ] }, { "input": "throw error error 44", "output": "if (!valid) { throw new Error('Invalid input'); }", "tags": [ "error_handling", "exceptions" ] }, { "input": "finally error 45", "output": "try { } catch(e) { } finally { cleanup(); }", "tags": [ "error_handling", "exceptions" ] }, { "input": "finally error 46", "output": "try { } catch(e) { } finally { cleanup(); }", "tags": [ "error_handling", "exceptions" ] }, { "input": "throw error error 47", "output": "if (!valid) { throw new Error('Invalid input'); }", "tags": [ "error_handling", "exceptions" ] }, { "input": "finally error 48", "output": "try { } catch(e) { } finally { cleanup(); }", "tags": [ "error_handling", "exceptions" ] }, { "input": "try catch error 49", "output": "try { risky(); } catch(err) { console.error(err); }", "tags": [ "error_handling", "exceptions" ] }, { "input": "finally error 50", "output": "try { } catch(e) { } finally { cleanup(); }", "tags": [ "error_handling", "exceptions" ] }, { "input": "try catch error 51", "output": "try { risky(); } catch(err) { console.error(err); }", "tags": [ "error_handling", "exceptions" ] }, { "input": "try catch error 52", "output": "try { risky(); } catch(err) { console.error(err); }", "tags": [ "error_handling", "exceptions" ] }, { "input": "try catch error 53", "output": "try { risky(); } catch(err) { console.error(err); }", "tags": [ "error_handling", "exceptions" ] }, { "input": "try catch error 54", "output": "try { risky(); } catch(err) { console.error(err); }", "tags": [ "error_handling", "exceptions" ] }, { "input": "try catch error 55", "output": "try { risky(); } catch(err) { console.error(err); }", "tags": [ "error_handling", "exceptions" ] }, { "input": "throw error error 56", "output": "if (!valid) { throw new Error('Invalid input'); }", "tags": [ "error_handling", "exceptions" ] }, { "input": "try catch error 57", "output": "try { risky(); } catch(err) { console.error(err); }", "tags": [ "error_handling", "exceptions" ] }, { "input": "finally error 58", "output": "try { } catch(e) { } finally { cleanup(); }", "tags": [ "error_handling", "exceptions" ] }, { "input": "try catch error 59", "output": "try { risky(); } catch(err) { console.error(err); }", "tags": [ "error_handling", "exceptions" ] }, { "input": "throw error error 60", "output": "if (!valid) { throw new Error('Invalid input'); }", "tags": [ "error_handling", "exceptions" ] }, { "input": "throw error error 61", "output": "if (!valid) { throw new Error('Invalid input'); }", "tags": [ "error_handling", "exceptions" ] }, { "input": "finally error 62", "output": "try { } catch(e) { } finally { cleanup(); }", "tags": [ "error_handling", "exceptions" ] }, { "input": "try catch error 63", "output": "try { risky(); } catch(err) { console.error(err); }", "tags": [ "error_handling", "exceptions" ] }, { "input": "try catch error 64", "output": "try { risky(); } catch(err) { console.error(err); }", "tags": [ "error_handling", "exceptions" ] }, { "input": "throw error error 65", "output": "if (!valid) { throw new Error('Invalid input'); }", "tags": [ "error_handling", "exceptions" ] }, { "input": "try catch error 66", "output": "try { risky(); } catch(err) { console.error(err); }", "tags": [ "error_handling", "exceptions" ] }, { "input": "finally error 67", "output": "try { } catch(e) { } finally { cleanup(); }", "tags": [ "error_handling", "exceptions" ] }, { "input": "finally error 68", "output": "try { } catch(e) { } finally { cleanup(); }", "tags": [ "error_handling", "exceptions" ] }, { "input": "try catch error 69", "output": "try { risky(); } catch(err) { console.error(err); }", "tags": [ "error_handling", "exceptions" ] }, { "input": "try catch error 70", "output": "try { risky(); } catch(err) { console.error(err); }", "tags": [ "error_handling", "exceptions" ] }, { "input": "finally error 71", "output": "try { } catch(e) { } finally { cleanup(); }", "tags": [ "error_handling", "exceptions" ] }, { "input": "finally error 72", "output": "try { } catch(e) { } finally { cleanup(); }", "tags": [ "error_handling", "exceptions" ] }, { "input": "throw error error 73", "output": "if (!valid) { throw new Error('Invalid input'); }", "tags": [ "error_handling", "exceptions" ] }, { "input": "finally error 74", "output": "try { } catch(e) { } finally { cleanup(); }", "tags": [ "error_handling", "exceptions" ] }, { "input": "throw error error 75", "output": "if (!valid) { throw new Error('Invalid input'); }", "tags": [ "error_handling", "exceptions" ] }, { "input": "finally error 76", "output": "try { } catch(e) { } finally { cleanup(); }", "tags": [ "error_handling", "exceptions" ] }, { "input": "finally error 77", "output": "try { } catch(e) { } finally { cleanup(); }", "tags": [ "error_handling", "exceptions" ] }, { "input": "throw error error 78", "output": "if (!valid) { throw new Error('Invalid input'); }", "tags": [ "error_handling", "exceptions" ] }, { "input": "finally error 79", "output": "try { } catch(e) { } finally { cleanup(); }", "tags": [ "error_handling", "exceptions" ] }, { "input": "try catch error 80", "output": "try { risky(); } catch(err) { console.error(err); }", "tags": [ "error_handling", "exceptions" ] }, { "input": "finally error 81", "output": "try { } catch(e) { } finally { cleanup(); }", "tags": [ "error_handling", "exceptions" ] }, { "input": "finally error 82", "output": "try { } catch(e) { } finally { cleanup(); }", "tags": [ "error_handling", "exceptions" ] }, { "input": "throw error error 83", "output": "if (!valid) { throw new Error('Invalid input'); }", "tags": [ "error_handling", "exceptions" ] }, { "input": "try catch error 84", "output": "try { risky(); } catch(err) { console.error(err); }", "tags": [ "error_handling", "exceptions" ] }, { "input": "throw error error 85", "output": "if (!valid) { throw new Error('Invalid input'); }", "tags": [ "error_handling", "exceptions" ] }, { "input": "try catch error 86", "output": "try { risky(); } catch(err) { console.error(err); }", "tags": [ "error_handling", "exceptions" ] }, { "input": "throw error error 87", "output": "if (!valid) { throw new Error('Invalid input'); }", "tags": [ "error_handling", "exceptions" ] }, { "input": "finally error 88", "output": "try { } catch(e) { } finally { cleanup(); }", "tags": [ "error_handling", "exceptions" ] }, { "input": "try catch error 89", "output": "try { risky(); } catch(err) { console.error(err); }", "tags": [ "error_handling", "exceptions" ] }, { "input": "throw error error 90", "output": "if (!valid) { throw new Error('Invalid input'); }", "tags": [ "error_handling", "exceptions" ] }, { "input": "finally error 91", "output": "try { } catch(e) { } finally { cleanup(); }", "tags": [ "error_handling", "exceptions" ] }, { "input": "throw error error 92", "output": "if (!valid) { throw new Error('Invalid input'); }", "tags": [ "error_handling", "exceptions" ] }, { "input": "throw error error 93", "output": "if (!valid) { throw new Error('Invalid input'); }", "tags": [ "error_handling", "exceptions" ] }, { "input": "finally error 94", "output": "try { } catch(e) { } finally { cleanup(); }", "tags": [ "error_handling", "exceptions" ] }, { "input": "try catch error 95", "output": "try { risky(); } catch(err) { console.error(err); }", "tags": [ "error_handling", "exceptions" ] }, { "input": "throw error error 96", "output": "if (!valid) { throw new Error('Invalid input'); }", "tags": [ "error_handling", "exceptions" ] }, { "input": "finally error 97", "output": "try { } catch(e) { } finally { cleanup(); }", "tags": [ "error_handling", "exceptions" ] }, { "input": "finally error 98", "output": "try { } catch(e) { } finally { cleanup(); }", "tags": [ "error_handling", "exceptions" ] }, { "input": "finally error 99", "output": "try { } catch(e) { } finally { cleanup(); }", "tags": [ "error_handling", "exceptions" ] }, { "input": "axios api 0", "output": "axios.get('/api').then(res => console.log(res.data));", "tags": [ "api", "fetch" ] }, { "input": "axios api 1", "output": "axios.get('/api').then(res => console.log(res.data));", "tags": [ "api", "fetch" ] }, { "input": "fetch get api 2", "output": "fetch('/api/data').then(r => r.json()).then(data => console.log(data));", "tags": [ "api", "fetch" ] }, { "input": "fetch get api 3", "output": "fetch('/api/data').then(r => r.json()).then(data => console.log(data));", "tags": [ "api", "fetch" ] }, { "input": "fetch post api 4", "output": "fetch('/api/data', { method: 'POST', body: JSON.stringify({}) });", "tags": [ "api", "fetch" ] }, { "input": "fetch post api 5", "output": "fetch('/api/data', { method: 'POST', body: JSON.stringify({}) });", "tags": [ "api", "fetch" ] }, { "input": "axios api 6", "output": "axios.get('/api').then(res => console.log(res.data));", "tags": [ "api", "fetch" ] }, { "input": "fetch get api 7", "output": "fetch('/api/data').then(r => r.json()).then(data => console.log(data));", "tags": [ "api", "fetch" ] }, { "input": "fetch get api 8", "output": "fetch('/api/data').then(r => r.json()).then(data => console.log(data));", "tags": [ "api", "fetch" ] }, { "input": "fetch get api 9", "output": "fetch('/api/data').then(r => r.json()).then(data => console.log(data));", "tags": [ "api", "fetch" ] }, { "input": "fetch get api 10", "output": "fetch('/api/data').then(r => r.json()).then(data => console.log(data));", "tags": [ "api", "fetch" ] }, { "input": "axios api 11", "output": "axios.get('/api').then(res => console.log(res.data));", "tags": [ "api", "fetch" ] }, { "input": "fetch get api 12", "output": "fetch('/api/data').then(r => r.json()).then(data => console.log(data));", "tags": [ "api", "fetch" ] }, { "input": "fetch post api 13", "output": "fetch('/api/data', { method: 'POST', body: JSON.stringify({}) });", "tags": [ "api", "fetch" ] }, { "input": "axios api 14", "output": "axios.get('/api').then(res => console.log(res.data));", "tags": [ "api", "fetch" ] }, { "input": "axios api 15", "output": "axios.get('/api').then(res => console.log(res.data));", "tags": [ "api", "fetch" ] }, { "input": "axios api 16", "output": "axios.get('/api').then(res => console.log(res.data));", "tags": [ "api", "fetch" ] }, { "input": "fetch post api 17", "output": "fetch('/api/data', { method: 'POST', body: JSON.stringify({}) });", "tags": [ "api", "fetch" ] }, { "input": "fetch post api 18", "output": "fetch('/api/data', { method: 'POST', body: JSON.stringify({}) });", "tags": [ "api", "fetch" ] }, { "input": "fetch post api 19", "output": "fetch('/api/data', { method: 'POST', body: JSON.stringify({}) });", "tags": [ "api", "fetch" ] }, { "input": "fetch get api 20", "output": "fetch('/api/data').then(r => r.json()).then(data => console.log(data));", "tags": [ "api", "fetch" ] }, { "input": "axios api 21", "output": "axios.get('/api').then(res => console.log(res.data));", "tags": [ "api", "fetch" ] }, { "input": "axios api 22", "output": "axios.get('/api').then(res => console.log(res.data));", "tags": [ "api", "fetch" ] }, { "input": "axios api 23", "output": "axios.get('/api').then(res => console.log(res.data));", "tags": [ "api", "fetch" ] }, { "input": "axios api 24", "output": "axios.get('/api').then(res => console.log(res.data));", "tags": [ "api", "fetch" ] }, { "input": "fetch post api 25", "output": "fetch('/api/data', { method: 'POST', body: JSON.stringify({}) });", "tags": [ "api", "fetch" ] }, { "input": "fetch post api 26", "output": "fetch('/api/data', { method: 'POST', body: JSON.stringify({}) });", "tags": [ "api", "fetch" ] }, { "input": "fetch post api 27", "output": "fetch('/api/data', { method: 'POST', body: JSON.stringify({}) });", "tags": [ "api", "fetch" ] }, { "input": "fetch get api 28", "output": "fetch('/api/data').then(r => r.json()).then(data => console.log(data));", "tags": [ "api", "fetch" ] }, { "input": "axios api 29", "output": "axios.get('/api').then(res => console.log(res.data));", "tags": [ "api", "fetch" ] }, { "input": "fetch get api 30", "output": "fetch('/api/data').then(r => r.json()).then(data => console.log(data));", "tags": [ "api", "fetch" ] }, { "input": "fetch post api 31", "output": "fetch('/api/data', { method: 'POST', body: JSON.stringify({}) });", "tags": [ "api", "fetch" ] }, { "input": "axios api 32", "output": "axios.get('/api').then(res => console.log(res.data));", "tags": [ "api", "fetch" ] }, { "input": "fetch post api 33", "output": "fetch('/api/data', { method: 'POST', body: JSON.stringify({}) });", "tags": [ "api", "fetch" ] }, { "input": "fetch post api 34", "output": "fetch('/api/data', { method: 'POST', body: JSON.stringify({}) });", "tags": [ "api", "fetch" ] }, { "input": "fetch get api 35", "output": "fetch('/api/data').then(r => r.json()).then(data => console.log(data));", "tags": [ "api", "fetch" ] }, { "input": "fetch get api 36", "output": "fetch('/api/data').then(r => r.json()).then(data => console.log(data));", "tags": [ "api", "fetch" ] }, { "input": "fetch get api 37", "output": "fetch('/api/data').then(r => r.json()).then(data => console.log(data));", "tags": [ "api", "fetch" ] }, { "input": "fetch get api 38", "output": "fetch('/api/data').then(r => r.json()).then(data => console.log(data));", "tags": [ "api", "fetch" ] }, { "input": "fetch post api 39", "output": "fetch('/api/data', { method: 'POST', body: JSON.stringify({}) });", "tags": [ "api", "fetch" ] }, { "input": "fetch post api 40", "output": "fetch('/api/data', { method: 'POST', body: JSON.stringify({}) });", "tags": [ "api", "fetch" ] }, { "input": "fetch post api 41", "output": "fetch('/api/data', { method: 'POST', body: JSON.stringify({}) });", "tags": [ "api", "fetch" ] }, { "input": "fetch post api 42", "output": "fetch('/api/data', { method: 'POST', body: JSON.stringify({}) });", "tags": [ "api", "fetch" ] }, { "input": "fetch post api 43", "output": "fetch('/api/data', { method: 'POST', body: JSON.stringify({}) });", "tags": [ "api", "fetch" ] }, { "input": "fetch get api 44", "output": "fetch('/api/data').then(r => r.json()).then(data => console.log(data));", "tags": [ "api", "fetch" ] }, { "input": "axios api 45", "output": "axios.get('/api').then(res => console.log(res.data));", "tags": [ "api", "fetch" ] }, { "input": "fetch get api 46", "output": "fetch('/api/data').then(r => r.json()).then(data => console.log(data));", "tags": [ "api", "fetch" ] }, { "input": "fetch post api 47", "output": "fetch('/api/data', { method: 'POST', body: JSON.stringify({}) });", "tags": [ "api", "fetch" ] }, { "input": "axios api 48", "output": "axios.get('/api').then(res => console.log(res.data));", "tags": [ "api", "fetch" ] }, { "input": "fetch post api 49", "output": "fetch('/api/data', { method: 'POST', body: JSON.stringify({}) });", "tags": [ "api", "fetch" ] }, { "input": "fetch get api 50", "output": "fetch('/api/data').then(r => r.json()).then(data => console.log(data));", "tags": [ "api", "fetch" ] }, { "input": "fetch get api 51", "output": "fetch('/api/data').then(r => r.json()).then(data => console.log(data));", "tags": [ "api", "fetch" ] }, { "input": "fetch get api 52", "output": "fetch('/api/data').then(r => r.json()).then(data => console.log(data));", "tags": [ "api", "fetch" ] }, { "input": "fetch get api 53", "output": "fetch('/api/data').then(r => r.json()).then(data => console.log(data));", "tags": [ "api", "fetch" ] }, { "input": "fetch get api 54", "output": "fetch('/api/data').then(r => r.json()).then(data => console.log(data));", "tags": [ "api", "fetch" ] }, { "input": "fetch get api 55", "output": "fetch('/api/data').then(r => r.json()).then(data => console.log(data));", "tags": [ "api", "fetch" ] }, { "input": "fetch get api 56", "output": "fetch('/api/data').then(r => r.json()).then(data => console.log(data));", "tags": [ "api", "fetch" ] }, { "input": "fetch post api 57", "output": "fetch('/api/data', { method: 'POST', body: JSON.stringify({}) });", "tags": [ "api", "fetch" ] }, { "input": "fetch get api 58", "output": "fetch('/api/data').then(r => r.json()).then(data => console.log(data));", "tags": [ "api", "fetch" ] }, { "input": "fetch get api 59", "output": "fetch('/api/data').then(r => r.json()).then(data => console.log(data));", "tags": [ "api", "fetch" ] }, { "input": "axios api 60", "output": "axios.get('/api').then(res => console.log(res.data));", "tags": [ "api", "fetch" ] }, { "input": "fetch get api 61", "output": "fetch('/api/data').then(r => r.json()).then(data => console.log(data));", "tags": [ "api", "fetch" ] }, { "input": "fetch post api 62", "output": "fetch('/api/data', { method: 'POST', body: JSON.stringify({}) });", "tags": [ "api", "fetch" ] }, { "input": "fetch post api 63", "output": "fetch('/api/data', { method: 'POST', body: JSON.stringify({}) });", "tags": [ "api", "fetch" ] }, { "input": "fetch get api 64", "output": "fetch('/api/data').then(r => r.json()).then(data => console.log(data));", "tags": [ "api", "fetch" ] }, { "input": "fetch get api 65", "output": "fetch('/api/data').then(r => r.json()).then(data => console.log(data));", "tags": [ "api", "fetch" ] }, { "input": "axios api 66", "output": "axios.get('/api').then(res => console.log(res.data));", "tags": [ "api", "fetch" ] }, { "input": "fetch get api 67", "output": "fetch('/api/data').then(r => r.json()).then(data => console.log(data));", "tags": [ "api", "fetch" ] }, { "input": "fetch post api 68", "output": "fetch('/api/data', { method: 'POST', body: JSON.stringify({}) });", "tags": [ "api", "fetch" ] }, { "input": "fetch get api 69", "output": "fetch('/api/data').then(r => r.json()).then(data => console.log(data));", "tags": [ "api", "fetch" ] }, { "input": "axios api 70", "output": "axios.get('/api').then(res => console.log(res.data));", "tags": [ "api", "fetch" ] }, { "input": "axios api 71", "output": "axios.get('/api').then(res => console.log(res.data));", "tags": [ "api", "fetch" ] }, { "input": "axios api 72", "output": "axios.get('/api').then(res => console.log(res.data));", "tags": [ "api", "fetch" ] }, { "input": "axios api 73", "output": "axios.get('/api').then(res => console.log(res.data));", "tags": [ "api", "fetch" ] }, { "input": "fetch get api 74", "output": "fetch('/api/data').then(r => r.json()).then(data => console.log(data));", "tags": [ "api", "fetch" ] }, { "input": "fetch get api 75", "output": "fetch('/api/data').then(r => r.json()).then(data => console.log(data));", "tags": [ "api", "fetch" ] }, { "input": "fetch post api 76", "output": "fetch('/api/data', { method: 'POST', body: JSON.stringify({}) });", "tags": [ "api", "fetch" ] }, { "input": "fetch get api 77", "output": "fetch('/api/data').then(r => r.json()).then(data => console.log(data));", "tags": [ "api", "fetch" ] }, { "input": "fetch post api 78", "output": "fetch('/api/data', { method: 'POST', body: JSON.stringify({}) });", "tags": [ "api", "fetch" ] }, { "input": "fetch get api 79", "output": "fetch('/api/data').then(r => r.json()).then(data => console.log(data));", "tags": [ "api", "fetch" ] }, { "input": "axios api 80", "output": "axios.get('/api').then(res => console.log(res.data));", "tags": [ "api", "fetch" ] }, { "input": "fetch get api 81", "output": "fetch('/api/data').then(r => r.json()).then(data => console.log(data));", "tags": [ "api", "fetch" ] }, { "input": "fetch get api 82", "output": "fetch('/api/data').then(r => r.json()).then(data => console.log(data));", "tags": [ "api", "fetch" ] }, { "input": "axios api 83", "output": "axios.get('/api').then(res => console.log(res.data));", "tags": [ "api", "fetch" ] }, { "input": "axios api 84", "output": "axios.get('/api').then(res => console.log(res.data));", "tags": [ "api", "fetch" ] }, { "input": "axios api 85", "output": "axios.get('/api').then(res => console.log(res.data));", "tags": [ "api", "fetch" ] }, { "input": "axios api 86", "output": "axios.get('/api').then(res => console.log(res.data));", "tags": [ "api", "fetch" ] }, { "input": "fetch post api 87", "output": "fetch('/api/data', { method: 'POST', body: JSON.stringify({}) });", "tags": [ "api", "fetch" ] }, { "input": "fetch get api 88", "output": "fetch('/api/data').then(r => r.json()).then(data => console.log(data));", "tags": [ "api", "fetch" ] }, { "input": "fetch get api 89", "output": "fetch('/api/data').then(r => r.json()).then(data => console.log(data));", "tags": [ "api", "fetch" ] }, { "input": "fetch post api 90", "output": "fetch('/api/data', { method: 'POST', body: JSON.stringify({}) });", "tags": [ "api", "fetch" ] }, { "input": "fetch post api 91", "output": "fetch('/api/data', { method: 'POST', body: JSON.stringify({}) });", "tags": [ "api", "fetch" ] }, { "input": "fetch post api 92", "output": "fetch('/api/data', { method: 'POST', body: JSON.stringify({}) });", "tags": [ "api", "fetch" ] }, { "input": "fetch get api 93", "output": "fetch('/api/data').then(r => r.json()).then(data => console.log(data));", "tags": [ "api", "fetch" ] }, { "input": "axios api 94", "output": "axios.get('/api').then(res => console.log(res.data));", "tags": [ "api", "fetch" ] }, { "input": "axios api 95", "output": "axios.get('/api').then(res => console.log(res.data));", "tags": [ "api", "fetch" ] }, { "input": "axios api 96", "output": "axios.get('/api').then(res => console.log(res.data));", "tags": [ "api", "fetch" ] }, { "input": "axios api 97", "output": "axios.get('/api').then(res => console.log(res.data));", "tags": [ "api", "fetch" ] }, { "input": "fetch post api 98", "output": "fetch('/api/data', { method: 'POST', body: JSON.stringify({}) });", "tags": [ "api", "fetch" ] }, { "input": "fetch post api 99", "output": "fetch('/api/data', { method: 'POST', body: JSON.stringify({}) });", "tags": [ "api", "fetch" ] } ] }