when I try to write such JS statement
var a = "\images\avatars\";
I am getting an error SyntaxError: Unexpected token ILLEGAL
This is definitely because of \ sign, but I need them. So how can I make this string safe?
PS. escape, encodeURI doesn't help