Skip to content

Latest commit

 

History

History

README.md

Tools


Modern JavaScript(Deep Dive)

https://poiemaweb.com/

인터프리터 언어 (JavaScript)

  • 인터프리터 언어(Interpreter Language) vs 컴파일 언어(Compiled Language)
Interpreter VS. Compiled
인터프리터 언어
(Interpreter Language
컴파일 언어
(Compiled Language)
JavaScript
Python
C, C++
JavaScript
Declare(변수 선언)
Allocation은 Runtime때
Compile Time에 대부분 다 해결
일부 Polymorphism은 Runtime때

모던 자바스크립트 저자 유튜브 강의 변수 시리즈

https://youtube.com/playlist?list=PLkNVwwEe58DjmO5kTUkfm-8NEDUKG2No5

JS_ 변수는 선언하면

function test(t) {
  if (t === undefined) {
    return 'Undefined value!';
  }
  return t;
}

let x; // Delare

console.log(test(x)); 
// Expected output: "Undefined value!"

x = 10; // allocation

Hoising 개념 잡기

https://developer.mozilla.org/en-US/docs/Glossary/Hoisting

5.29 Array_자바스크립트 배열은 배열이 아니다

https://poiemaweb.com/js-array-is-not-arrray?fbclid=IwAR2BbwtwAsunP-vXZCIT9smB4eJEMfRRg0h_g3trK192omvaqV0ykGyWml4&mibextid=Zxz2cZ

JavaScript는 선언 할당 개념이 완전히 틀리다. 주의 !! Declare & allocation

flowchart TD
    A[Var foo<br>변수 선언_declare_] -->|0x0000FFFF| C(<strong><em>undefined</em></strong><br>_Primative Type_)
    B[foo = 10<br>값의 할당Allocation] -->|0x0000FFF2| D{80}

Loading

https://felixgerschau.com/javascript-memory-management/

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Memory_Management

Falsy

https://developer.mozilla.org/en-US/docs/Glossary/Falsy