Problem with javascript in visual studio

0

It turns out that I have a function in Javascript that formats a number entered in a text box, for example: if I enter 1324, it is formatted at $ 1,234 (Chile weight format). All of the above works very well, but in the sublime editor. I work in Visual Studio 2012 and when copying the same code on this one throws me a syntax error, as shown in the image. Can someone help me correct that error please?

    
asked by Francisco Vargas 07.10.2018 в 20:09
source

1 answer

1

It seems that your IDE does not support Javascript syntax. You can use a plugin to solve this. Go to Tools / Extensions and Updates, on the 'Online' tab you can find Javascript plugins. Or you can also download it from here and install it manually

    
answered by 07.10.2018 в 21:58