① 홈페이지 - 우클릭 - 검사 - console
② Visual Studio Code - script 태그를 이용
③ 이벤트 프로그램 활용
ㆍ정수, 실수, 연산자
console.log(1); // 정수
console.log(1.1); // 실수
// Operator 연산자
console.log(1+1); // 2
console.log(2-1); // 1
console.log(2*2); // 4
console.log(4/2); // 2
ㆍ문자열과 숫자
console.log('1'+'1'); // 문자열 사이에 있는 +는 결합연산자
console.log(1+1); // 숫자 사이에 있는 +는 산술연산자
ㆍ변수와 상수
let a = 1; // a는 변수
a = 2;
console.log(a);
// 변수값은 변할 수 있다, 변수는 data에 이름을 붙인 것
1 = 2; // 1은 상수, constant
// = : 대입연산자
※ 다음과 같이 코드를 작성하면, 다른 사람도 이해하기 쉽다.
let 가격 = 10000;
let 부가가치세율 = 0.1;
let 부가가치세 = 가격*부가가치세율;
console.log(부가가치세);
ㆍ홈페이지에 버튼으로 night & day모드 만들기!
<input type="button" value="night" onclick="
document.querySelector('body').style.backgroundColor = 'black';
document.querySelector('body').style.color = 'white';
">
<input type="button" value="day" onclick="
document.querySelector('body').style.backgroundColor = 'white';
document.querySelector('body').style.color = 'black';
">
'구글 애널리스트'로 방문객수 확인하는 것을 시간부족으로 미해결
Git에 일괄 commit 하는 방법이 금방 지나가서 이해 못 함
강의 영상을 보며 실습해볼 예정임
https://analytics.google.com/
https://opentutorials.org/module/5752
실시간 강의를 들으며 실습을 따라가기엔 아직 실력이 부족한 것 같다.
(특히 모니터 하나로 여러창을 띄우려니 왔다갔다@-@ 모니터가 더 필요하다ㅜ)
또한 방문객수를 확인할 때 단순히 숫자뿐만이 아닌 위치 등 정보를 알 수 있다는 점, 네이버 검색 키워드를 입력 시 인터넷을 사용한다는 점 등 여러가지로 놀랐다.
매일 수업을 들으며 새로운 것을 알아가는 즐거움이 있다!