Suppose I want to incorporate a boolean value in some string I print out, like
var x=1;
var y=2;
document.write("<p>The result is "+x==y+"</p>");
Normally, this does not give me the requred output. Is there a method to directly print boolean expressions in the document.write() itself? I do not want to use if-else and then assign separate values to variables and then print them. PS - I have just started learning JavaScript.
trueorfalse?