TGViewer
JavaScript JavaScript @javascript · 31K subscribers
Post #2003 6.33K
CHALLENGE


const students = [
{ name: 'Alice', age: 20 },
{ name: 'Bob', age: 22 },
{ name: 'Charlie', age: 23 }
];

const studentToFind = { name: 'Bob', age: 22 };

const isIncluded = students.includes(studentToFind);

console.log(isIncluded);
  • 👍 10
  • ❤ 1
More from @javascript
  1. Oct 11, 2026Post #3552
  2. Oct 11, 2026CHALLENGE const output = []; output.push(typeof foo); try { output.push(typeof bar); } cat…
  3. Oct 10, 2026Post #3550
  4. Oct 10, 2026CHALLENGE async function main() { const settled = await Promise.allSettled([ Promise.resol…
  5. Oct 9, 2026Post #3548
  6. Oct 9, 2026CHALLENGE const a = -7 % 3; const b = 7 % -3; const c = 2 ** 3 ** 2; const d = (2 ** 3) **…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →