혜개바라
close
프로필 배경
프로필 로고

혜개바라

  • 분류 전체보기 (170)
    • 코테 준비 (46)
      • 알고리즘 (8)
      • [JS] 프로그래머스 (37)
      • [MYSQL] 프로그래머스 (1)
    • 언어 정리 (52)
      • JavaScript (52)
      • TypeScript (0)
    • 개발 공부 (26)
      • HTML (2)
      • CSS (2)
      • React-Next.js (6)
      • Vue (0)
      • Tanstack Query (1)
      • Webpack (4)
      • Github (2)
      • MYSQL (2)
      • 기타 (개발 공부) (7)
    • 프로젝트 (22)
      • Vanilla JS 문서편집기 (10)
      • 올해도 아좌좌 (5)
      • 개발괴발 (5)
      • 기타 (프로젝트) (2)
    • 회고 (18)
    • 블로그 관리 (0)
    • 기타 (4)
  • 홈
  • 코테 준비
  • 언어 정리
  • 개발 공부
  • 프로젝트
  • 회고
  • 태그
  • 방명록
  • github@suehdn

String.prototype.split()

String 객체를 구분자를 이용해 여러개의 문자열로 나눔. const str = 'The quick brown fox jumps over the lazy dog.'; const words = str.split(' '); console.log(words[3]); // expected output: "fox" const chars = str.split(''); console.log(chars[8]); // expected output: "k" const strCopy = str.split(); console.log(strCopy); // expected output: Array ["The quick brown fox jumps over the lazy dog."]

  • format_list_bulleted 언어 정리/JavaScript
  • · 2022. 11. 9.
  • textsms

Array.prototype.reverse()

배열 순서를 반전해줌. ['1','2','3'] -> ['3','2','1'] const array1 = ['one', 'two', 'three']; const reversed = array1.reverse(); console.log('reversed:', reversed); // expected output: "reversed:" Array ["three", "two", "one"] // 원본 array1도 변경함. console.log('array1:', array1); // expected output: "array1:" Array ["three", "two", "one"] https://developer.mozilla.org/ko/docs/Web/JavaScript/Reference/Global_..

  • format_list_bulleted 언어 정리/JavaScript
  • · 2022. 11. 9.
  • textsms

Array.prototype.join()

배열의 모든 요소를 연결해 하나의 문자열로 만듬. const elements = ['Fire', 'Air', 'Water']; console.log(elements.join()); // expected output: "Fire,Air,Water" console.log(elements.join('')); // expected output: "FireAirWater" console.log(elements.join('-')); // expected output: "Fire-Air-Water" https://developer.mozilla.org/ko/docs/Web/JavaScript/Reference/Global_Objects/Array/join

  • format_list_bulleted 언어 정리/JavaScript
  • · 2022. 11. 9.
  • textsms

Array.proptotype.filter()

주어진 함수의 테스트를 통과하는 모든 요소를 모아 새로운 배열로 반환. const words = ['spray', 'limit', 'elite', 'exuberant', 'destruction', 'present']; const result = words.filter(word => word.length > 6); console.log(result); ["exuberant", "destruction", "present"] https://developer.mozilla.org/ko/docs/Web/JavaScript/Reference/Global_Objects/Array/filter

  • format_list_bulleted 언어 정리/JavaScript
  • · 2022. 11. 6.
  • textsms
  • navigate_before
  • 1
  • ···
  • 6
  • 7
  • 8
  • 9
  • navigate_next
공지사항
전체 카테고리
  • 분류 전체보기 (170)
    • 코테 준비 (46)
      • 알고리즘 (8)
      • [JS] 프로그래머스 (37)
      • [MYSQL] 프로그래머스 (1)
    • 언어 정리 (52)
      • JavaScript (52)
      • TypeScript (0)
    • 개발 공부 (26)
      • HTML (2)
      • CSS (2)
      • React-Next.js (6)
      • Vue (0)
      • Tanstack Query (1)
      • Webpack (4)
      • Github (2)
      • MYSQL (2)
      • 기타 (개발 공부) (7)
    • 프로젝트 (22)
      • Vanilla JS 문서편집기 (10)
      • 올해도 아좌좌 (5)
      • 개발괴발 (5)
      • 기타 (프로젝트) (2)
    • 회고 (18)
    • 블로그 관리 (0)
    • 기타 (4)
최근 글
인기 글
최근 댓글
태그
  • #프로그래머스
  • #회고
  • #0단계
  • #코딩테스트준비
  • #js
  • #js메서드
  • #프로젝트
  • #VanillaJS
  • #JavaScript
  • #2023
전체 방문자
오늘
어제
전체
Copyright © 쭈미로운 생활 All rights reserved.
Designed by JJuum

티스토리툴바