Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## 실행 시간
- ```javascript
- var result = 0;
- console.time('duration_sum');
- for (var i = 1; i <= 100000; i++) {
- result += i;
- }
- console.timeEnd('duration_sum');
- console.log('1부터 100000까지 더한 결과물 : %d', result);
- ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement