가장 많이 묻는 면접 질문과 답변 & 온라인 테스트
면접 준비, 온라인 테스트, 튜토리얼, 라이브 연습을 위한 학습 플랫폼

집중 학습 경로, 모의고사, 면접 준비 콘텐츠로 실력을 키우세요.

WithoutBook은 주제별 면접 질문, 온라인 연습 테스트, 튜토리얼, 비교 가이드를 하나의 반응형 학습 공간으로 제공합니다.

Chapter 2

JavaScript Setup, Script Tags, Browser Console, Node.js, and First Program

Set up JavaScript in both browser and Node.js environments and understand how scripts are loaded and executed.

Inside this chapter

  1. Running JavaScript in the Browser
  2. Using External Files
  3. Node.js for Local Execution
  4. Your First Program
  5. Developer Tools Basics
  6. Common Setup Mistakes

Series navigation

Study the chapters in order for the clearest path from JavaScript basics and browser setup to asynchronous programming, APIs, performance, and advanced engineering practices. Use the navigation at the bottom to move smoothly through the full tutorial series.

Tutorial Home

Chapter 2

Running JavaScript in the Browser

The browser is the most common first environment for JavaScript. Students can write scripts directly inside HTML or reference external JavaScript files. Browser developer tools also provide a console for quick experimentation and debugging.

<script>
  console.log("Hello JavaScript");
</script>
Chapter 2

Using External Files

<script src="app.js"></script>

External files keep code maintainable, reusable, and easier to debug than large inline scripts.

Chapter 2

Node.js for Local Execution

node app.js

Node.js allows JavaScript to run outside the browser. This is important because it broadens JavaScript into backend and tooling use cases.

Chapter 2

Your First Program

console.log("Welcome to JavaScript");

This simple statement introduces output, execution flow, and the idea that JavaScript statements run in sequence.

Chapter 2

Developer Tools Basics

Students should become comfortable with the browser console, element inspector, network panel, and sources panel early. JavaScript is much easier to learn when you can observe what the runtime is doing.

Chapter 2

Common Setup Mistakes

  • Referencing a wrong script path
  • Loading a script before the HTML it depends on is available
  • Assuming Node.js APIs work in browsers
  • Ignoring console errors and warnings
Copyright © 2026, WithoutBook.