Skip to content

Difference between ( ) and [ ] #1483

Answered by cromewar
zchuanru asked this question in Q&A
May 16, 2022 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

Hello @solarwhale
Each language has it's own conventions for using some symbols., but they are common conventions so...
() is usually used to refer to function calls,
[] is usually used to refer to numeric/contextual index on data types like arrays.

with this context...

set on this index -> personToNum[_storePersonName]= _storePersonNum; <- this value.

I hope this info might help.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@zchuanru
Comment options

@cromewar
Comment options

@zchuanru
Comment options

Answer selected by zchuanru
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants