Apparently for some weird reasons I have been getting a bug on a web app and replacing it from dot notation to [''] solved it.
Observe:
from:
item.price = quantity * normal_price;
to:
item['price'] = quantity * normal_price;
Apparently for some weird reasons I have been getting a bug on a web app and replacing it from dot notation to [''] solved it.
Observe:
from:
item.price = quantity * normal_price;
to:
item['price'] = quantity * normal_price;
For further actions, you may consider blocking this person and/or reporting abuse
Martins Gouveia -
Uchechi Nwaka -
Rahul Kumar Barnwal -
Tianya School -
Top comments (2)
The later allows you to use variables to reference object keys. That's one way
This seems plausible