Hello everyone, I created variables and I wanted to display data from variables with document.write. The problem is when I run the code with one of the browsers it doesn’t show me anything. I am a beginner in JavaScript and every tip and suggestion will mean a lot to me. Here is my code
<!Doctype html>
<html>
<head>
<meta charset="UTF-8">
</head>
<body>
<script type="text/javascript">
var x=r;
var y=1510;
window.document.write(x);
document.write("<hr>");
document.write(y);
</script>
</body>
</html>