This code is not being rendered in multiple lines even though I have used JavaScript template literals. Why is it so?
document.write(`Today is: ${day}
The time now is: ${hours} : ${minutes} hrs
The year is: ${year}`);
This code is not being rendered in multiple lines even though I have used JavaScript template literals. Why is it so?
document.write(`Today is: ${day}
The time now is: ${hours} : ${minutes} hrs
The year is: ${year}`);
you are missing a new line character. or a <br>
The break is for html line breaks. add one or two to get what you want.