<!DOCTYPE html>
<html lang="en">

<head>
	<meta charset="UTF-8">
	<title>JavaScript Types</title>
</head>

<body>
	<script>
		var name;
		name = prompt("What is your name?");
		document.write(name);
		document.write("<h1>" + name + "</h1>");
		document.write(name + 7 + "<br>");
		document.write(document.title + "<br>");
		var pars = document.getElementsByTagName('p');
		document.write(pars + "<br/>");
		document.write(pars.length);
	</script>
</body>

</html>