티스토리 뷰
(결과 출력)

(이용 코드)
document.write( ); , typeof
(소스 코드)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>2022.01.04_JavaScript 실습</title>
<script>
document.write(2022);
document.write('<br/>'+2022+'<br/>');
document.write('Hello '+2022+'<br/>');
document.write('<br/>-----구분선-----<br/><br/>');
document.write(3+5+'<br/>');
document.write('3 + 5 : '+(3+5)+'<br/>');
document.write('<br/>-----구분선-----<br/><br/>');
let num;
num=5;
document.write('type of num : '+ typeof num +'<br/>');
num='Busan';
document.write('type of num : '+ typeof num +'<br/>');
</script>
</head>
<body>
<h3>JavaScript Practice</h3>
</body>
</html>'수업 > └HTML&CSS' 카테고리의 다른 글
| 과제 : 조건문, 반복문, 함수 (0) | 2022.01.06 |
|---|---|
| [2022.01.03]CSS_selector (0) | 2022.01.05 |
| [2022.01.04]Javascript_산술, 비교 연산자 (0) | 2022.01.05 |
| [JavaScript]태그에 직접 정의해보기 (0) | 2022.01.04 |
| 애니메이션(Animation) (0) | 2022.01.04 |
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- html a tag
- caption-side
- BAEKJOON
- html input type
- scanner
- ScriptTag
- 미디어 태그
- html pre
- CascadingStyleSheet
- A%B
- Java
- JavaScript
- html atrribute
- css
- 스크립태그
- 기본선택자
- initialized
- typeof
- border-spacing
- text formatting
- html base tag
- html layout
- 외부구성요소
- improt
- empty-cell
- 변수
- input type 종류
- html
- 입력양식
- selcetor
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | ||||
| 4 | 5 | 6 | 7 | 8 | 9 | 10 |
| 11 | 12 | 13 | 14 | 15 | 16 | 17 |
| 18 | 19 | 20 | 21 | 22 | 23 | 24 |
| 25 | 26 | 27 | 28 | 29 | 30 | 31 |
글 보관함