Описание тега square-bracket
The symbols "[" and "]", commonly used in programming languages. Please use this tag only if the specific usage of these symbols is a relevant part of the question.
Overview
The square brackets "[" and "]" are special cases of brackets, along with parentheses and curly brackets (or braces) ("{", "}").
Uses
Square brackets have many uses in most programming languages, such as:
- create lists and arrays;
- refer to specific elements of an object, associative-array or list as in JavaScript "bracket notation";
- specify a character class to match one out of several characters in a regular expression.