More Related Content
Similar to 현재 자바스크립트 표준은 어디쯤 (20)
현재 자바스크립트 표준은 어디쯤
- 1. 현재 자바스크립트 표준은
어디쯤?
Javascript Standard of 2012
Denny Lim <hello@iamdenny.com>
<iamdenny@nhn.com>
- 10. 코딩 컨벤션
fnto Hmnsedr{
ucin ua(Gne)
/Piae
/rvt
ti.ng =1
hs_Ae ;
ti.sedr=sedr| 'ae;
hs_Gne Gne | Ml'
/Pbi
/ulc
ti.rwp=fnto({
hsgoU ucin)
ti.ng+;
hs_Ae+
}
}
- 15. 모듈 패턴
fnto Hmnsepedr{
ucin ua(TmGne)
/Piae
/rvt
vrng =1
a Ae ,
sedr=sepedr| 'ae;
Gne TmGne | Ml'
/Pbi
/ulc
rtr {
eun
goU :fnto({
rwp ucin)
ng+;
Ae+
}
}
}
- 24. CommonJS APIs
Binary
Console
Encoding
Filesystem
IO
Modules
Packages
Promises
- 27. 웹서버 제작
vrht =rqie'tp)
a tp eur(ht';
ht.raeevrfnto (e,rs {
tpcetSre(ucin rq e)
rswieed20 {CnetTp' 'etpan};
e.rtHa(0, 'otn-ye: tx/li')
rsed'el Wrdn)
e.n(Hlo ol';
}.itn13,'2...';
)lse(37 17001)
cnoelg'evrrniga ht:/2...:37';
osl.o(Sre unn t tp/1700113/)
- 32. 사용법
dfn(
eie
'con'
acut,
[srie,'usb]
'evc' pbu',
fnto(evc,pbu)
ucinsrie usb{
/ PiaeCd
/ rvt oe
/ epr pbi AI
/ xot ulc Ps
rtr {
eun
sgI :fnto({,
inn ucin)}
sgOt:fnto( {,
inu ucin) }
gtae:fnto( {,
eNm ucin) }
stae:fnto( {
eNm ucin) }
}
}
);
- 33. 다른 방법
(ucin)
fnto({
/ PiaeCd
/ rvt oe
eprs={
xot
sgI :fnto({,
inn ucin)}
sgOt:fnto( {,
inu ucin) }
gtae:fnto( {,
eNm ucin) }
stae:fnto( {
eNm ucin) }
};
dfn(acut,fnto({
eie'con' ucin)
rtr eprs
eun xot;
}
});
()