<!Doctype html>
<html>
<body>
<p>스크립트 전</p>
<script>
alert('Hello world!');
</script>
<p>스크립트 후</p>
</body>
</html>
자바 스크립트 코드의 양이 많은 경우, 파일로 소분하여 저장 가능
분해해 놓은 가 파일은 src속성을 이용해 html에 삽입.
<script src="/path/to/script.js"></script>
<script> src="file.js">
alert(1); // src속성이 사용되었으므로 이 코드는 무시됨.
// 두개 분리시 사용가능
</script>
줄 바꿈이 있다면 세미콜론 생략 가능
대부분의 경우, js는 줄바꿈이 있으면 암시적 세미콜론으로 해석 (automatic semicolon insertion)
but, 대괄호 앞에는 세미콜론이 있다고 가정하지 않음.
alert('Hello')
alert('World') // no error