✅ Full stack online: Backend + AI engine + MongoDB connected (~50 user capacity).

CODEMENTOR AI

Your code is being judged. Make sure it survives.

Get the code review you'd get in a real interview. No sugar-coating. No tutorials. Just honest technical judgment.

Your Code
function getUserData(userId) {
  const user = users.find(u => u.id == userId);
  return {
    name: user.name,
    email: user.email,
    posts: user.posts.map(p => ({
      title: p.title,
      content: p.content
    }))
  };
}
Senior Review
Critical

No null check. This crashes in production the moment user is undefined. Did you even test this?

Critical

Type coercion with == instead of ===. Are you writing JavaScript or playing roulette?

Design

Direct database coupling. Why is this function responsible for data mapping? Single responsibility principle—heard of it?

Performance

O(n) lookup every time. Use a Map. This doesn't scale past 100 users.

Verdict: Would not pass review

No account required. Paste your code, get judged in 30 seconds.

This is not a learning platform. This is career insurance. If your code can't handle a harsh review here, it won't survive a real interview or a production incident. We don't teach. We expose.