브라우저마다 콘솔에 접근하는 방법이 다릅니다. 콘솔은 자주 사용하게 될 테니 키보드 단축키
를 기억하는 것이 좋습니다. 윈도우와 리눅스용 파이어폭스에서는
Ctrl
-
Shift
-
K
를 누르면 되
고, 맥용 파이어폭스에서는
Command
-
Option
-
K
를 누르면 됩니다.
index
.
html
을 불러온 페이지에서 자바스크립트 콘솔을 열면
main
.
js
loaded
라는 텍스트가
보여야 합니다. 만약 보이지 않으면 페이지를 리로드해 보십시오.
console
.
log
는 메서드
2
입니
다. 이 메서드는 원하는 내용을 콘솔에 출력할 때 사용하며 디버깅에도 유용하고 언어를 배울
때도 유용합니다.
콘솔에는 여러 가지 유용한 기능이 많은데, 프로그램의 출력 결과를 보는 것 외에도
자바스크
립트 코드를 콘솔에 직접 입력
할 수 있습니다. 이를 통해 간단한 테스트를 하거나 자바스크립
트 기능을 공부할 수 있고, 심지어 프로그램을 임시로 수정하는 것도 가능합니다.
1.6
제이쿼리 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.
O’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
I wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
I’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
I'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.