이 포럼에서이 오류를 읽었지만 도움이되는 것이 없습니다. 정말 이상한 점은 강사가 강의에서이 파일을 복사했지만 과거에는 실행되지 않는다는 것입니다. 어떤 아이디어?잡히지 않은 SyntaxError : 예기치 않은 토큰 ILLEGAL
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Warner: iLab 1 Iteration and Summing Numbers</title>
</head>
<body style="font: 100% Ariel;">
<h2>Iteration |Summing Numbers Between Two Integers |</h2><hr />
<p>
<script type="text/javascript">
var firstInt = parseInt(prompt("Enter an Integer from 1 and 4",""));
document.write("Your first Entry: " +firstInt);
var secondInt = parseInt(prompt("Enter an Integer from 6 and 9",""));
document.write("<br> Your second Entry: "+secondInt+"<br>);
var sumNumbers = 0;
for(var i=firstInt; i<=secondInt; i++)
{
sumNumbers += i;
}
document.write("<br>The answer is "+ sumNumbers);
</script>
</p>
</body>
</html>
document.write''에 대해 [이 게시물] (http://stackoverflow.com/questions/802854/why-is-document-write-considered-a-bad-practice)을 통해 읽기 - 일반적으로 그렇게하지 않으려 고합니다. –
팁을 주셔서 감사합니다 ... 저는 강사가 어떻게 이것을 원하는지 그것을하고 있습니다. 나는 확실히이 포스트를 체크 아웃 할 것이다. – floyd
글꼴 이름은 "Arial"입니다. "아리엘"은 당신이 기대하는 것을하지 않을 수도 있습니다. –