EASY JS SOLUTION
\n# Code\n\nconst maxCount = function (banned, n, maxSum) {\n  let answ = 0;\n  let sum = 0;\n  for (let i = 1; i <= n; i++) {\n    if (!banned.includes(i) && s
\n# Code\n```\nconst maxCount = function (banned, n, maxSum) {\n  let answ = 0;\n  let sum = 0;\n  for (let i = 1; i <= n; i++) {\n    if (!banned.includes(i) && sum + i <= maxSum) {\n        answ++;\n        sum += i;\n    }\n  }\n  return answ;\n};\n\n```
['JavaScript']