인프런 영문 브랜드 로고
인프런 영문 브랜드 로고

Inflearn Community Q&A

rhdlwmal12343894's profile image
rhdlwmal12343894

asked

JavaScript Beginner: Building a Strong Foundation

3. Variable

코드

Written on

·

155

0

keynote에 code 부분을 눌러도 창이안뜨는데 어떻게하나요?

oopjavascript

Answer 1

2

tonextday님의 프로필 이미지
tonextday
Instructor

확장자 html 파일에 아래와 같이 작성합니다.

<!DOCTYPE html>
<html lang=ko>
<head>
<meta charset="utf-8">
<title>자바스크립트</title>
<script src="./code.js" defer></script>
</head>
<body>
</body>
</html>

----------------------------
code.js 파일에 "코드"를 눌렀을 때 표시되는 코드를 작성합니다.

코드를 작성한 후, html 파일을 마우스로 끌어 브라우저 위에 놓습니다.
그러면 code.js 파일에 작성된 코드가 실행됩니다.
이해가 안 되시면, 섹션 1. 기본 문법 => "강좌 환경,Hellow JavaScript"에 설명이 있으므로 이를 참조하세요

rhdlwmal12343894's profile image
rhdlwmal12343894

asked

Ask a question