Parser assignment

Does this make sense for JS? I know in Dart it does since the `[]` operator is only on Maps