본문 바로가기

전체 글

(82)
JS - operator JS 강의 필기 + 추가 dynamic typing 때문에 string concatenation 주의해야 됨 console.log('my' + ' cat'); // my cat console.log('1' + 2); // 12 numeric operators add + subtract - divide / multiply * remainder % exponentitation ** Increment and decrement operators ++preIncrement, postIncrement++ --preDecrement, postDecrement-- assignment operators let x = 3; let y = 6; x += y; // x = x + y x -= y; x *= y; x /= y;..
JS - variable JS 강의 필기 + 추가 'use strict'; added in ES5. use this for Vanilla JS. 맨 위에 넣기. Variable declaration 1. constant: read-only. immutable. 2. let: mutable. added in ES6. problem: IE 지원 안 됨. 해결: ES6로 개발한 뒤 BARBEL에서 변환해서 배포 3. var: had used until ES5. don't ever use this. problems var hoisting(move declaration from bottom to top) has no block scope Datatype 1. Immutable: primitive types, frozen objects 2..
HTML, CSS 꾸미기 보기 좋게 만들 때 쓸 것들. 기능 쪽은 이전 글. 꾸미기 관련은 그때그때 찾아쓰는데, 북마크해두었던 걸 모아봄. px, em, pt, % 등의 단위를 쓸 때 좀 맞춰줘야 적용됨. %는 부모요소의 크기 정보가 있어야 적용됨. 이럴 필요 없는 단위가 있었는데 뭐더라... padding, margin (솔직히 얘는 뇌가 싫어서 피해다니는듯) 참고 링크 input attribute text-align: input box 안에서 텍스트 정렬 letter-spacing: 자간 그 외 참고 css - input box 여러개를 한 줄로 넣기 (시뮬레이션 링크) input { display:inline; } font awesome 예제 참고 링크 버튼에 아이콘 넣기 table 만들기 참고 링크1 참고 링크2 tabl..
HTML, CSS 헷갈리는 부분들 html상의 tag에 attribute에 값 줄 때 = 사용. style이나 css에선 : 사용. html문 안에 css 섞을 때는 html상의 tag에 attribute(color, font-size, font-family 등) 추가하거나 head tag 사이에 style tag 넣어서 적용. = 말고 : 로 부여하고 ; 로 다른 attribute와 분리. head tag는 페이지 자체에 대한 정보값(title, meta, link). meta tag는 character set 뭐 쓰는지에 대한 것. self-closing tag. a tag는 href attribute에 url 또는 html 파일(상대경로 사용) 넣어서 하이퍼링크 거는 것. target attribute로 새 창에서 ..
Git - Visual Studio Code에서 git bash 사용하기 강사님이 git bash 대신 vs code를 쓰신다. 이를 따라하고자 여기를 참고해 powershell 대신 bash로 vs code의 터미널을 바꿔보았다. 참고한 게시글이 삼 년도 더 된 글이라 조금 변한 것도 있다. 여러가지로 해보았기 때문에 후반에 시도한 방법의 선수 조건이 먼저 한 방법에서 충족되었을 수도 있다. 편하다고 생각한 방법부터 기록하니, 혹시 이걸 보고 따라하는 사람이 있다면 여러 방법으로 시도해보시길 바란다. 터미널에 bash 치기. 반대로 bash 상태에서는 powershell을 쳐서 돌아올 수 있다. 터미널 우측 위 + 버튼 → Select Default Shell → Git bash ctrl + , → terminal.integrated.shell.windows 입력 → Edi..