I am making a project in Nodejs with express framework i am using EJS as template engine, i use Visual Studio Code as a IDE.
I have a strange problem where when i use EJS variable inside <script> tag in same ejs file it renders correctly and woks as expected but Visual studio Code marks it an error saying JS Expression Expected
<%
var date = matches.dateGMT;
var matchDate = date.getTime();
%>
<script type="text/javascript">
$(function () {
var date = <%= matchDate %> ;
var dateUntil = new Date(date);
$('.match_time').countdown({until: dateUntil});
});
</script>
Screenshot from IDE
Any one has idea how to get rid of this error showing in Visual Studio Code.
