Sunday, June 2, 2024
 Popular · Latest · Hot · Upcoming
-3
rated 0 times [  0] [ 3]  / answers: 1 / hits: 25763  / 13 Years ago, tue, may 31, 2011, 12:00:00
qAnswersR[90430] = [];
qAnswersR[90430].push([math]k: frac{(x+20)^{2}}{256}+frac{(y-15)^{2}}{81}=1[/math]);


And I need to get the value into variable, but when I console.log out the array like this:



console.log(qAnswersR[90430]);


I get: [math]k: rac{(x+20)^{2}}{256}+rac{(y-15)^{2}}{81}=1[/math],[math]k: 81(x+20)^{2}+256(y-15)^{2}=20736[/math]



But the escape tag disappears, but I need it there, what should I do?


More From » escaping

 Answers
38

But the escape tag disappears, but I need it there, what should I do?




You need to escape the backslash, i.e., use \ instead of just :



[math]k: \frac{(x+20)^{2}}{256}+\frac{(y-15)^{2}}{81}=1[/math]
^ ^

[#91961] Sunday, May 29, 2011, 13 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
lara

Total Points: 462
Total Questions: 100
Total Answers: 102

Location: Jersey
Member since Mon, Jun 14, 2021
3 Years ago
lara questions
;