I do not understand what all these brackets mean in MDN javascript syntax document.
For example, https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map
in this document, there are brackets "[" between each parameter before the comma ','
Array.prototype.map()
var new_array = arr.map(function callback(currentValue[, index[, array]]) {
// Return element for new_array
}[, thisArg])
but when i actually code, for example,
var numbers = [1, 4, 9];
var info = numbers.map(function(num,index) {
return "index: " + index + ", number: " + num;
});
console.log(info)
//output: ["index: 0, number: 1", "index: 1, number: 4", "index: 2, number: 9"]
I do not use array or put [ in the parameters... So what does these brackets mean in the document??

:)