Menu
I’m trying to insert a newline escape character into my script.. but it seems to insert a space rather than make a new line. Am I doing something wrong?
[CODE]<html>
<script type=”text/javascript”>
var name = “Joe Nobody”;
var gpa = 0;
hoursWorked = prompt(“Enter your name”,”Joe Nobody”);
gpa = prompt(“Enter your GPA”,0);
document.write(“Hello “, name, “. Your GPA is “, gpa);
document.write(“nMake a new line.”);
</script>
</html>