How to print double quote in JavaScript? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
0

How to print double quote in JavaScript?

var person = { name:"victor", age:30, Height: "5-8"', favColor:"black" }; var x = person.name; var y = person['Height']; document.write(x+"<br/>"); document.write(y); i want to print double quote as well. Please help

4th Jun 2020, 5:34 AM
Dev Sharma
Dev Sharma - avatar
2 Antworten
+ 3
document.write ("\"")
4th Jun 2020, 5:35 AM
Sarthak
Sarthak - avatar
+ 1
Thanks
4th Jun 2020, 5:44 AM
Dev Sharma
Dev Sharma - avatar