본문 바로가기

아카이브

검색하기
아카이브
프로필사진 Rayi

  • 분류 전체보기 (227) N
    • CS (30) N
      • ML (3)
      • CV (2)
      • PS (25) N
    • Reveiw (8)
      • Paper (8)
      • Github (0)
    • Pytorch (5)
    • Language (55)
      • Python (6)
      • JavaScript (30)
      • TypeScript (16)
      • C++ (3)
    • IDE (12)
    • Git (13)
    • Frontend (25)
      • React (8)
      • SolidJS (20)
      • CSS (8)
    • UI (3)
    • Backend (40)
      • DB (17)
      • Node.js (11)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2025/03   »
일 월 화 수 목 금 토
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31
Tags
  • frontend
  • mongo
  • ps
  • Linux
  • PyTorch
  • nodejs
  • review
  • vscode
  • python
  • API
  • GAN
  • postgresql
  • react
  • Three
  • html
  • sqlite
  • CV
  • Express
  • figma
  • DB
  • UI
  • SOLID
  • CSS
  • C++
  • js
  • Git
  • ts
  • opencv
  • ML
  • PRISMA
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록2025/03/29 (1)

아카이브

[JS] Syntax | 11. rest parameter - 가변 변수 사용하기

1. argumentargument는 함수에서 가변적인 매개변수들을 받아 접근할 때 사용할 수 있습니다. argument는 유사 리스트의 형태로 반환되어 리스트와 관련된 메소드를 사용할 수는 없습니다. 단, argument.length와 argument[0] 등의 인덱스 접근은 가능합니다.const func1 = (arg1, arg2) => { console.log(arg1); console.log(arg2);}func1(1); // 1, undefinedfunc1(1, 2); // 1, 2func1(1, 2, 3); // 1, 2 (3은 출력되지 않음)const func2 = (arg1, arg2) => { for (const arg of arguments){ ..

Language/JavaScript 2025. 3. 29. 19:51
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory
let textNodes = document.querySelectorAll("div.tt_article_useless_p_margin.contents_style > *:not(figure):not(pre)"); textNodes.forEach(function(a) { a.innerHTML = a.innerHTML.replace(/~(.*?)~/g, '$1'); });

티스토리툴바