What does this function return?
A common JavaScript function used in almost every AI-generated app.
Spot the async pattern
AI generates this pattern constantly when fetching data from an API.
Read this React hook
The most common React pattern AI writes for managing component data.
Trace this array transformation
AI uses this pattern to transform lists of data before displaying them.
Read this error message pattern
Understanding how AI structures error responses from a backend API.
What does this string method return?
AI uses string methods constantly. This one trips up beginners.
Array basics: find vs filter
Two array methods that look similar but behave very differently.
Object destructuring with defaults
AI generates this pattern in function parameters constantly.
Promise chaining order
Understanding the order of operations in Promise chains is critical for debugging AI code.
React useState with objects
A subtle bug AI commonly introduces when updating state that is an object.
Python list comprehension
Python list comprehensions are dense but powerful. AI generates them everywhere.
TypeScript generics basics
Generics appear in almost every TypeScript codebase. AI uses them to write reusable functions.
Array reduce explained
reduce is the most powerful and most misunderstood array method. AI uses it for aggregations.
Closure and counter
Closures are a fundamental JavaScript concept. AI uses this pattern for factories and encapsulation.
Python decorator pattern
Decorators are everywhere in Python - Flask routes, logging, caching. AI generates them constantly.
TypeScript discriminated unions
Discriminated unions are how TypeScript models "one of several shapes". AI uses this for API responses and state machines.
Custom React hook
Custom hooks are how AI encapsulates reusable logic. Understanding them is essential for reading modern React code.
Async race condition
Race conditions in async code are a classic AI-generated bug that is hard to spot.
Python context manager
Context managers handle setup and teardown automatically. AI uses them for files, database connections, and locks.
TypeScript utility types
Utility types like Partial, Pick, and Omit appear in nearly every TypeScript project. AI generates these for API wrappers and form handlers.