스터디룸

스터디룸

  • 분류 전체보기 (342)
    • AWS (28)
    • 서버 (2)
    • 웹, 네트워크, 통신 (32)
    • PHP (59)
      • CodeIgniter3 (6)
      • CodeIgniter4 (1)
      • Laravel8.X (13)
    • JavaScript (67)
      • BootStrap (3)
      • JQuery (7)
    • DB (25)
      • 오라클 (7)
      • MySQL (15)
      • postgreSQL (1)
    • Java (46)
      • 문풀 (13)
      • 전자정부프레임워크 (1)
    • HTML, CSS (1)
    • 파이썬 (26)
    • 기타 (40)
      • TOPCIT (5)
      • 구글애널리틱스 (2)
      • 2019 AI EXPO KOREA 국제인공지능대전 (6)
      • 네트워크관리사2급 (5)
    • 그누보드 (5)
  • 홈
  • 태그
  • 방명록
RSS 피드
로그인
로그아웃 글쓰기 관리

스터디룸

컨텐츠 검색

태그

네임스페이스

최근글

댓글

공지사항

아카이브

728x90
반응형
JavaScript(67)

  • 자바스크립트 변수명에 대괄호 ...(1)

    2019.10.12
  • 자바스크립트 호이스팅 뜻

    2019.10.11
  • 자바스크립트 reduce

    2019.10.03
  • 자바스크립트 map, filter

    2019.10.03
  • 자바스크립트 forEach

    2019.09.30
  • 자바스크립트 concat, join

    2019.09.30
728x90
반응형
자바스크립트 변수명에 대괄호 ...(1)

자바스크립트에서 querySelectorAll을 쓰던 중에 저 var [a, b]가 이해되지 않아서 찾아보았다. a b import "./styles.css"; var [a, b] = document.querySelectorAll("button"); console.log(typeof([a,b])); console.log([a]); console.log([a,b]); console.log([a,b][0]); 참고자료: https://www.deadcoderising.com/2017-03-28-es6-destructuring-an-elegant-way-of-extracting-data-from-arrays-and-objects-in-javascript/ ES6 : Desctructing - an elegan..

2019. 10. 12. 17:11
자바스크립트 호이스팅 뜻

참고자료 : 이해하기 쉬운 설명과 예제가 들어있는 사이트. https://scotch.io/tutorials/understanding-hoisting-in-javascript 관련 한글자료 https://webcoding.tistory.com/115 Hoisting is a JavaScript mechanism where variables and function declarations are moved to the top of their scope before code execution. Inevitably, this means that no matter where functions and variables are declared, they are moved to the top of their scope..

2019. 10. 11. 23:50
자바스크립트 reduce

참고자료 : https://developer.mozilla.org/ko/docs/Web/JavaScript/Reference/Global_Objects/Array/Reduce https://aljjabaegi.tistory.com/311 https://youtu.be/g1C40tDP0Bk reduce() 는 배열의 각 요소에 대해서 주어진 reducer 함수를 실행하고, 하나의 결과값을 반환한다. reduce() 구문은 배열이름.reduce(callbackFunction(acc, cur, idx, src), initialValue) 라고 쓴다. callback : 배열의 각 요소에 대해 실행할 함수, 즉 reducer 이다. 이놈은 4개의 인자를 가진다. 1. accumulator (이하 acc) : c..

2019. 10. 3. 17:20
자바스크립트 map, filter

map(), filter() 안에 있는 number는 각각 numbers, numbers2의 요소들에 순차적으로 접근하여 값을 받아오는 놈들임 함수 안에서만 사용하는 지역변수라 자기가 쓰고싶은대로 이름 지을 수 있고, 같은 이름을 사용해도 상관 없음

2019. 10. 3. 16:37
자바스크립트 forEach

forEach()의 매개변수는 function이다. function의 매개변수는 최대 3개 (value, index, array)이다. value만 보고싶다면 function(value)로 쓰고 console.log(value) 하면 된다. index만 보고싶다면 function(thisArg, index)로 쓰고 console.log(index) 하면 되던데 무슨 원리인지는 아직 잘 모름. const days = ['Mon', 'Tue', 'Wed', 'Thr', 'Fri', 'Sat']; // 1. 노가다로 출력 console.log(days[0]); console.log(days[1]); console.log(days[2]); console.log(days[3]); console.log(days[4..

2019. 9. 30. 22:25
자바스크립트 concat, join

concat은 여러개의 배열을 하나로 합쳐준다. join은 배열 안의 요소들을 하나의 문자열로 만들어준다.

2019. 9. 30. 21:08
1 ··· 5 6 7 8 9 10 11 12
티스토리
© 2018 TISTORY. All rights reserved.

티스토리툴바