Parameters
You can use [
and ]
brackets to automatically make an array of assignments. These three all mean the same thing:
[name, age]
name = undefined, age = undefined
(name, undefined), (age, undefined)
Last updated
Was this helpful?
You can use [
and ]
brackets to automatically make an array of assignments. These three all mean the same thing:
[name, age]
name = undefined, age = undefined
(name, undefined), (age, undefined)
Last updated
Was this helpful?