티스토리 뷰
Use Rest parameter(...args) to allow accepting an indefinite number of arguments and store them in an array
const arrow = (...args) => {
console.log(args);
}
arrow(1,2,3,4);
output
[1,2,3,4] - it returns array
'JavaScript' 카테고리의 다른 글
Spread Operator (0) | 2020.12.26 |
---|---|
Type Conversion in Javascript (number, string) (0) | 2020.09.15 |
How to run your Javascript test code in Chrome (0) | 2020.07.28 |
Single-thread in JavaScript (0) | 2019.09.06 |
Promise (0) | 2019.09.04 |
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- ... in Javascript
- hackerrank javascript solution
- hackerrank solution
- javascript
- 프로그래머스 알고리즘문제
- easy javascript algorithm
- Collection Framework
- C++
- 프로그래머스
- HackerRank Algorithm
- compareTo()
- substring()
- hackerrank
- string class in java
- 알고리즘
- HashMap
- spring boot application
- code refactoring
- 프로그래머스 알고리즘
- Object type casting
- math.max
- math.abs
- repeat()
- rest parameter
- easy algorithm
- java
- hackerrank javascript
- Javascript Algorithm
- equals()
- algorithm
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함