Javascript Erros | XM Community
Skip to main content
Solved

Javascript Erros

  • November 14, 2018
  • 2 replies
  • 30 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!!

Best answer by MohammedAli_Rajapkar

Can you try removing quotes and have 2 double quotes at below 2 places... var a = ""; if (s[i]!= "")

2 replies

MohammedAli_Rajapkar
QPN Level 5 ●●●●●
Forum|alt.badge.img+20
Can you try removing quotes and have 2 double quotes at below 2 places... var a = ""; if (s[i]!= "")

  • Author
  • November 14, 2018
@Mohammedali_Rajapakar_Ugam It worked. Thank you!!