|
|
Q1665 What is the difference between square brackets, i.e. [], and parenthesis', i.e. ()?
irt.org | Knowledge Base | JavaScript | General | Q1665 [ previous next ] Q1665 What is the difference between square brackets, i.e. [], and parenthesis', i.e. ()?Parenthesis' hold optional parameters to be passed and received to and by a functions, object methods or object constructors. for example:
Square brackets are used in arrays to access an entry in an array either by its position (index) or by its name (associate arrays), for example:
Feedback on 'Q1665 What is the difference between square brackets, i.e. [], and parenthesis', i.e. ()?' |
-- div -->
|