How to use "<div class="example">"
in JavaScript code? I think compiler. JavaScript compiler understands it as "<div class="
and "example"
. On the other words, it do not correctly understands the order of double quotes.
Asked
Active
Viewed 41 times
-2

David Arutiunian
- 193
- 1
- 3
- 11
-
"" like this?– Parkash Kumar Oct 26 '15 at 12:38
-
Do not replace one question with another one. Ask a new question. – Oct 26 '15 at 14:12
-
Cannot make anymore questions :( – David Arutiunian Oct 26 '15 at 14:14
2 Answers
0
You can use escape character as "\" like this;
"<div class=\"example\">"

Furkan Başaran
- 1,927
- 2
- 19
- 28