<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
</head>
<body>
<script type="text/javascript">
<!--
window.document.write("환영합니다");
window.document.write("<br><b>환영</b><i>합니다</i>");
-->
자바스크립트의 정석은 <!-- -->를 붙여 자바스크립트라는걸 알려야 함. 브라우저에서 js해석을 못하면 주석으로 받아들이게끔
하지만 요즘엔 브라우저가 다 해석을 해서 굳이 안 붙여도 됨
</script>
유스 스트릭 쓰는 순간 a,b변수는 무시당함
a,b변수 주는 방식은 옛날방식.
너저분해서 안 좋아함
<script>
"use strict"
window.document.write("이건 자바스크립트");
window.document.write('<br>a:',a);
var a = 10;
var b = 20;
window.document.write("<br>");
window.document.write(a+b);
let c = 30;
let d = 40;
window.document.write("<br>");
window.document.write(c+d);
console.log(c+b);
</script>
</body>
</html>