Count to ten example not working


My code does not show the numbers 1 to 10

<!DOCTYPE html>
	<title>Hello, HTML!</title>
		function countToTen() {
		var count = 0;
		while (count < 10) {
		count + "<br>";
		Code-Line Before Listing Code </script>
		<body onload = "countToTen();">
		<h1>Let's Count to 10 with JavaScript!</h1>
		<p id="theCount"> </p>


Remove this line
Code-Line Before Listing Code


It works now, Thanks!


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.