{"pageProps":{"code":{"debug_1.1.js":{"name":"debug_1.1.js","content":"function frequency(list) {\n  const obj = {};\n  for (const item of list) {\n    if (!(item in obj)) {\n      obj[item] = 1;\n    }\n    obj[item]++;\n  }\n  return obj;\n}\nfrequency(['a','a','b','b','c'])","path":"code/other//debug_1.1.js","fileext":"js"},"debug_1.2.js":{"name":"debug_1.2.js","content":"function frequency(list) {\n  const obj = {};\n  console.log(obj);\n  for (const item of list) {\n    if (!(item in obj)) {\n      obj[item] = 1;\n    }\n    obj[item]++;\n  }\n  console.log(obj);\n  return obj;\n}\nfrequency(['a','a','b','b','c'])","path":"code/other//debug_1.2.js","fileext":"js"},"debug_1.3.js":{"name":"debug_1.3.js","content":"function frequency(list) {\n  const obj = {};\n  console.log(obj);\n  for (const item of list) {\n    console.log('item', item);\n    if (!(item in obj)) {\n      obj[item] = 1;\n    }\n    obj[item]++;\n  }\n  console.log(obj);\n  return obj;\n}\nfrequency(['a','a','b','b','c'])","path":"code/other//debug_1.3.js","fileext":"js"},"debug_1.4.js":{"name":"debug_1.4.js","content":"function frequency(list) {\n  const obj = {};\n  console.log(obj);\n  for (const item of list) {\n    console.log('item', item);\n    if (!(item in obj)) {\n      obj[item] = 1;\n    }\n    obj[item]++;\n    console.log(`obj[${item}]`, obj[item])\n  }\n  console.log(obj);\n  return obj;\n}\nfrequency(['a','a','b','b','c'])","path":"code/other//debug_1.4.js","fileext":"js"},"debug_1.5.js":{"name":"debug_1.5.js","content":"function frequency(list) {\n  const obj = {};\n  console.log(obj);\n  for (const item of list) {\n    if (!(item in obj)) {\n      obj[item] = 1;\n    }\n    //obj[item]++;\n  }\n  console.log(obj);\n  return obj;\n}\nfrequency(['a','a','b','b','c'])","path":"code/other//debug_1.5.js","fileext":"js"},"debug_1.6.js":{"name":"debug_1.6.js","content":"function frequency(list) {\n  const obj = {};\n  for (const item of list) {\n    if (!(item in obj)) {\n      obj[item] = 1;\n    }\n    obj[item]++;\n  }\n  return obj;\n}\nfrequency(['a','a','b','b','c'])","path":"code/other//debug_1.6.js","fileext":"js"},"debug_2.1.js":{"name":"debug_2.1.js","content":"function sortByAge(users) {\n  return users.sort((a, b) => a.age < a.age);\n}\n\nfunction findMedianAge(users) {\n  if (users.length === 0) {\n    return null;\n  }\n\n  let middleIndex = Math.floor(users.length / 2);\n  if (users.length % 2 === 0) {\n    return (users[middleIndex].age + users[middleIndex - 1].age) / 2;\n  } else {\n    return users[middleIndex + 1].age;\n  }\n}\n\nlet userList = [\n  { name: \"Alice\", age: 25 },\n  { name: \"Bob\", age: 19 },\n  { name: \"Charlie\", age: 32 },\n  { name: \"David\", age: 17 }\n  { name: \"Hayden\", age: 99 }\n];\n\nlet sortedUsers = sortByAge(userList);\nlet medianAge = findMedianAge(sortedUsers);\nconsole.log(\"Median age:\", medianAge);","path":"code/other//debug_2.1.js","fileext":"js"},"hi.py":{"name":"hi.py","content":"hi","path":"code/other//hi.py","fileext":"py"}}},"__N_SSG":true}