< script type = "text/javascript"> document.write("HelloWorld");< /script>alert(내용);const, let으로 일괄되게 변수 선언 가능. String int long..이런식으로 나누지 않
js에서 const를 선언 안하고 그냥 변수명만 써도 선언 가능. 이 경우는 전역변수로 인식함.funtion() {a = 10;}alert(a); <정상적 실행.funtion() {const a = 10;}alert(a); <오류파이썬처럼 typeof()를
< script> function setName(obj) { obj.name = "Lee"; obj = new Object(); obj.name = "jeungwoo"; }
<%%>은 표현식이었고 지금 배울 내용은 표현 언어. jsp에서 출력을 간단하게 하는 방법. 기본 형태는 ${} 이다. 내가 편한 방식을 사용하면 될 듯.표현 언어의 특징으로는 원래 방식에서는 null이 출력되지만 el방식에서는 null은 빈 공백으로 출력한다는