티스토리 뷰
1. This single line of short circuit evaluation is
let value = options && options.value || '';
equal to this code
let value;
if(options){
value = options.value;
}
else
value = '';
2.
stick > min && target.push(stick - min);
if(stick > min){
target.push(stick - min);
}
'JavaScript' 카테고리의 다른 글
window in Javascript (0) | 2022.10.06 |
---|---|
code refactoring 01 (0) | 2022.10.05 |
Spread Operator (0) | 2020.12.26 |
Type Conversion in Javascript (number, string) (0) | 2020.09.15 |
Rest parameter (0) | 2020.08.26 |
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- HashMap
- math.abs
- HackerRank Algorithm
- algorithm
- 프로그래머스 알고리즘문제
- rest parameter
- spring boot application
- code refactoring
- compareTo()
- hackerrank solution
- hackerrank javascript solution
- easy algorithm
- java
- easy javascript algorithm
- hackerrank javascript
- ... in Javascript
- Object type casting
- javascript
- C++
- Javascript Algorithm
- 프로그래머스 알고리즘
- math.max
- repeat()
- 프로그래머스
- 알고리즘
- equals()
- hackerrank
- Collection Framework
- string class in java
- substring()
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함