C# to Jacascript

Hello,
Can someone rewrite these lines of code from C# to Javascript?
Vector3 enemyScale = transform.localScale;
enemyScale.x *= -1;
transform.localScale = enemyScale;

I defined how to translate C# yourself in this answer.