How do I output content into the browser in quotes?

How do I output content into the browser in quotes?
0

#1
var output = "Your name is.....";
alert(output ); 

want output to be in quotes still , please help

As in;
If this is the browser …the output would be “Your name is …”


#2

https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/escaping-literal-quotes-in-strings/


#3

Have tried that but its not working with just a defined var
Console.log (“output”); :confused::confused:


#4

Have you tried escaping quotes, like:

let output = "\"Good Morning\"";
console.log(output);

#5

Awww! Thanks !..didn’t think of doing it that way