Skip to content

Javascript: Variable Unreferenced when += is Used #42422

@vsfeedback

Description

@vsfeedback

This issue has been moved from a ticket on Developer Community.


[severity:It bothers me. A fix would be nice]
In Javascript, when I use variable += 'string' with a string variable that has been initialized, that does not change the variable declaration color from gray to white, to indicate it has been referenced. When I change it to variable = variable + 'string', the syntax highlighter works correctly, and changes the variable declaration color to white. Please see screenshots attached.


Original Comments

Feedback Bot on 1/19/2021, 09:43 PM:

We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.


Original Solutions

(no solutions)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Working as IntendedThe behavior described is the intended behavior; this is not a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions