티스토리 뷰
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
- Javascript Algorithm
- hackerrank solution
- Collection Framework
- easy javascript algorithm
- hackerrank javascript solution
- string class in java
- compareTo()
- hackerrank javascript
- Object type casting
- repeat()
- C++
- HackerRank Algorithm
- spring boot application
- 알고리즘
- substring()
- 프로그래머스
- ... in Javascript
- algorithm
- math.abs
- equals()
- code refactoring
- java
- hackerrank
- HashMap
- easy algorithm
- 프로그래머스 알고리즘문제
- rest parameter
- math.max
- javascript
- 프로그래머스 알고리즘
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함