Apparently Visual Studio does not recognize the 'use strict'
directive, because I typed the code below that assigns a value to a variable that was not declared (something prohibited in strict mode ) and there was no part of IntelliSense.
'use strict';
a = 1;
I do not know if it makes any difference, but the code was written in a JavaScript file and not inside an HTML document. So the editor used was the "Source Code (Text) Editor" and not the "HTML Editor".
How do Visual Studio recognize 'use strict'
and point errors in code, such as above in this case?