B
B
bimka2021-11-25 20:55:59
JavaScript
bimka, 2021-11-25 20:55:59

How to remove the error in visual studio: asks for a semicolon after quotes?

The question is very stupid: Visual Studio Code throws an error:
';' expected. javascript[9, 66]
The code works great, but there are a lot of quotes

619fcdfcac546910612416.png

. It seems okay, but somehow annoying.
How can I remove the error message?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladislava, 2021-12-07
@bimka

Set window location = "{% url 'index' }" and that's it. And now you have too many quotes.
And if you write js code, then wrap it in script tags

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question