Javascript Erros | XM Community
Solved

Javascript Erros

  • 14 November 2018
  • 2 replies
  • 15 views

Hi everyone, I have some JavaScript for one of my questions but I am getting the following error: Unexpected token ILLEGAL. I have attached the code. Any help would be greatly appreciated!!
icon

Best answer by MohammedAli_Rajapkar 14 November 2018, 17:09

View original

2 replies

Userlevel 7
Badge +20
Can you try removing quotes and have 2 double quotes at below 2 places...

var a = "";

if (s[i]!= "")
@Mohammedali_Rajapakar_Ugam It worked. Thank you!!

Leave a Reply