본문 바로가기 메뉴 바로가기

sora

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

sora

검색하기 폼
  • 분류 전체보기 (7)
    • Javascript (2)
      • Understanding ECMAScript 6 (2)
    • Daily coding problem (0)
    • RAN (3)
    • Knitting (2)
  • 방명록

Javascript (2)
Strings and Regular Expressions

https://leanpub.com/understandinges6/read#leanpub-auto-better-unicode-support 을 정리한 내용입니다. 향상된 유니코드 지원ECMAScript 5 까지는 16-bit 문자 인코딩 방식(UTF-16)을 사용했다.length와 charAt()은 16-bit 단위로 계산되었다.그러나 Unicode는 16 bits만으로 표현되지 않는다. var text = "𠮷"; console.log(text.length); // 2 console.log(/^.$/.test(text)); // false console.log(text.charAt(0)); // "" console.log(text.charAt(1)); // "" console.log(text.charC..

Javascript/Understanding ECMAScript 6 2018. 12. 25. 18:16
Block Bindings

https://leanpub.com/understandinges6/read#leanpub-auto-block-bindings 을 정리한 내용입니다.자바스크립트에는 두 가지 scope가 존재한다.Local scope : 함수 범위Global scope : 전역 범위var로 변수를 선언하면, 해당 scope의 맨 위에서 선언한 것처럼 처리된다. (hoisting) function myFunc(condition) { if (condition) { console.log(a); // undefined } else { var a = 1; console.log(a); // 1 } console.log(a); // undefined } 실제로는 아래와 같다. function myFunc(condition) { var ..

Javascript/Understanding ECMAScript 6 2018. 12. 20. 21:40
이전 1 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
more
«   2025/05   »
일 월 화 수 목 금 토
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
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바