Square brackets: [ ]
Meaning: Array notation
Usage:
const arr = [1, 2, 3]; // Create an array console.log(arr[1]); // Access the second element (0-indexed)
Other relevant links:
The above is the detailed content of What do Square Brackets [] Mean in JavaScript?. For more information, please follow other related articles on the PHP Chinese website!