+ 3
Js unexpected token ' line 2
I got the error in the title of this question and here's the two lines that i didn't manage to change them in my code function make_images(li) { var download = '<form method="get" action=';
3 ответов
+ 6
WARLORD ,
Hello , please post complete code in code playground and then share link here.
follow this post:
https://www.sololearn.com/post/75089/?ref=app
looking at current state of your question , you have missed a closing curly bracket }
apart from this I'll suggest to use template literals , backticks instead of single or double quotes for string with HTML content as it can span multiple lines . FYI this is backtick 👉 `
backticks are also called grave accent.
+ 4
🇮🇳Omkar🕉 my code is private because i'm making an application but what i can tell you that i'm using the following :
Ajax
appendchild ,setattribute and createelement operations instead of innerhtml(i used innerhtml in the code in the question then i changed it to js appendelement and createelement operations
I'm sorry but i can't post the full code
Anyway i'm not even using the expression ' in my code, not even in a single variable
+ 4
🇮🇳Omkar🕉 problem solved it was something with the server messages anyway thanks for help so here's a "best answer" mark