What does "square brackets" mean in programming?
square brackets is one of the most common terms in software development. This guide explains what it means, how it is used in practice, and why it matters, with real examples from the developer world.
Definition
The [ ] characters, also called 'brackets'. Used to define array literals, access elements by index (arr[0]), and in TypeScript to denote array types (string[]).
Example
"const first = items[0]; // square brackets access the first element"
Related terms
Ready to practice your English at work?
Lingua-e has interactive exercises built around real developer conversations: standups, code reviews, retrospectives, and more. Practice until it comes naturally.
Try Lingua-e for free