Cant understand this javascript syntax

Hey guys can someone explain me the meaning of that syntax ? thanks var varname1 [= value1] [, varname2 [= value2] ... [, varnameN [= valueN]]]
5 Replies
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
Samathingamajig
the original code is not valid syntax did you mean
var varname1 = value1, varname2 = value2, varnameN = valueN;
var varname1 = value1, varname2 = value2, varnameN = valueN;
?
dan
dan3y ago
I think the [] are trying to signify that the contents inside them are optional
Samathingamajig
yea thats what i thought
dan
dan3y ago
the result would be this assuming everything is used
Want results from more Discord servers?
Add your server