.cpp
Code
JavaScript (웹 프로그래밍 언어)
JavaScript는 세계에서 가장 널리 사용되는 프로그래밍 언어로, 모든 현대 웹 브라우저에서 실행됩니다. 동적 웹 페이지, 서버 사이드 애플리케이션(Node.js), 모바일 앱, 데스크톱 앱을 구동합니다.
MIME 타입
text/x-c++src
유형
텍스트
압축
무손실
장점
- + High performance with zero-cost abstractions
- + Rich standard library (STL) with containers, algorithms, and iterators
- + RAII provides deterministic resource management
- + Templates enable powerful generic programming
단점
- − Complex language with a very steep learning curve
- − Long compilation times, especially with heavy template use
- − Manual memory management (though smart pointers help)
.CPP 사용 시점
JavaScript는 웹 브라우저 클라이언트 사이드 스크립팅, Node.js 서버, 크로스 플랫폼 앱 개발에 사용됩니다.
기술 세부사항
JavaScript는 단일 스레드 이벤트 루프 모델로, 콜 스택, 마이크로태스크 큐(프로미스), 매크로태스크 큐(setTimeout)를 사용합니다. 프로토타입 기반 상속, 클로저, async/await, 프록시 등을 지원합니다. V8(Chrome/Node.js), SpiderMonkey(Firefox), JavaScriptCore(Safari)가 주요 엔진입니다.
역사
Brendan Eich가 1995년 Netscape에서 10일 만에 JavaScript를 만들었습니다. ECMAScript로 표준화되었으며, ES6(2015)는 클래스, 화살표 함수, 프로미스, 모듈 등 대규모 업데이트를 가져왔습니다.