Technically, the way it works is that it assigns the title property of the object to a variable named string and the comments property to the number variable.
Another alternative can be to use an interface or a type declaration.
Collection
[
|
...
]