parent
8918cb7e75
commit
008c282632
@ -0,0 +1 @@
|
||||
console.log('Hello, World!')
|
@ -0,0 +1,20 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>30DaysOfScript:Inline Script</title>
|
||||
<!-- <script src="introduction.js"></script> -->
|
||||
<!-- <script>
|
||||
console.log('Welcome to 30DaysOfJavaScript')
|
||||
</script> -->
|
||||
</head>
|
||||
<body>
|
||||
<button onclick="alert('Welcome to 30DaysOfJavaScript!')">Click Me</button>
|
||||
<!-- <script>
|
||||
console.log('Welcome to 30DaysOfJavaScript')
|
||||
</script> -->
|
||||
<script src="helloworld.js"></script>
|
||||
<script src="introduction.js"></script>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,4 @@
|
||||
console.log('Welcome to 30DaysOfJavaScript')
|
||||
|
||||
// let firstDay = 1
|
||||
// firstDay = 2
|
@ -0,0 +1,18 @@
|
||||
자바스크립트를 적용하는 방법들
|
||||
1. Inline script
|
||||
2. Internal script
|
||||
3. External script
|
||||
4. Multiple External scripts
|
||||
|
||||
Inline script
|
||||
- alert같은 built-in function같이 html에 자연스레 들어가있음
|
||||
|
||||
Internal script
|
||||
- <script>자바스크립트 내용</script> 이렇게 html에 끼워넣는다
|
||||
|
||||
External의 경우
|
||||
- JS파일을 따로 만들어서 넣는다
|
||||
- <script src="자바스크립트 파일 경로"></script>
|
||||
|
||||
---
|
||||
|
Loading…
Reference in new issue