Recent Posts
- [Javascript] JavaScript Pro Tips - Code This, NOT That JavaScript Pro Tips - Code This, NOT That 무려 3년전 비디오라는게 함수형 프로그래밍은 예나 지금이나 The Async Await Episode I Promised cf) 완벽하다 영상에 들어간 Do/Don't 코드까지 github로...❤️ https://github.com/codediodeio/code-this-not-that-js GitHub - codediodeio/code-this-not-that-js: JavaScript Pro Tips - Code This, Not That JavaScript Pro Tips - Code This, Not That. Contribute to codediodeio/code-this-not-that-js development by.. 2022.05.09
- [프로그래머스] [1차] 다트게임 / Javascript [문제 바로가기] 2018 KAKAO BLIND RECRUITMENT > [1차] 다트 게임 [ 문제 파악 ] [ 적용한 풀이 ] function solution(dartResult) { let e = dartResult.match(/\d.?\D/g); let sentence = []; for(let i = 0; i < e.length; i++){ let score = e[i].includes('0') & e[i].includes('1') ? 10 : [...e[i]][0]; if(e[i].includes('S')) score = Math.pow(score, 1); if(e[i].includes('D')) score = Math.pow(score, 2); if(e[i].includes('T')) scor.. 2022.05.05
- [Javascript] 4 ways to replace string in js https://appdividend.com/2022/02/14/javascript-remove-character-from-string/ How to Remove Character from String in JavaScript To remove a character from a string in Javascript, you can use the replace() function, slice() method, or string substr() function. appdividend.com - .substr() - .replace() - .replace() with regular expression - .slice() 2022.05.05
- [Javascript] replace string / 브라우저별 function 속도 비교 내가 본 stackoverflow 글 중에서 가장 정성스러운 글이었다. https://stackoverflow.com/a/65724578 How to remove text from a string? I've got a data-123 string. How can I remove data- from the string while leaving the 123? stackoverflow.com * 2개의 샘플 - 10자 정도의 짧은 String - 1,000,000자 정도 되는 나름 긴 String - 10개의 snippet 준비 - 3개의 브라우저에서 비교( 크롬, 사파리, 파이어폭스 ) Stackoverflow에서 매번 도움받고 있지만 이런 식으로 글을 적으면 코드를 참고하는 사람에게도 근거가 있으니 도움.. 2022.05.05
- [프로그래머스] [1차] 비밀지도 / Javascript [문제 바로가기] 2018 KAKAO BLIND RECRUITMENT > [1차] 비밀지도 (Lv.1) [ 문제 파악 ] - 비트 연산자 중 OR를 사용하는 것이 핵심! [ 적용한 풀이 ] function solution(n, arr1, arr2) { var answer = []; for(let i = 0; i { return before2radix.replace(/1/g,'#').replace(/0/g, ' ') }) return answer; } [해결 과정 중 실수한 부분 / 잡담] 이렇게 간단한 문젠데 ㅠ.. 2022.05.04