Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

197
Views
Using embedded javascript to style HTML element displays error in VS Code

In my EJS file I am changing the border color of every even numbered row in a table using the following code:

<tr style="<% if (i % 2 == 0) { %> border: 3px solid crimson; <% }; %>" >

When I run my node.js web application this works as expected, the issue is that in VSCode it is showing that there are errors as displayed in the picture below:

enter image description here

Is there a way to get rid of this error or does VS Code just not recognize EJS syntax?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!