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
3 Respostas
+ 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