I am using emacs (js2-mode) for coding javaScript. Here is a simple code snippet where emacs always shows me a syntax error:
<script>
var x = function (a, b)
{
return a * b;
};
</script>
The "{" and "return a" are always colored in red, can somebody tell me why? Has anyone worked with js2-mode so far?