Node.js Advent Calendar 2015 6日目(遅刻)です。 ぼくはこの 2015 年は React.js や RxJS と出会ってとても JavaScript が楽しくなった一年でした。 移り変わりの激しいこの JS 界隈で様々なモジュールやフレームワークを触ってみて、JavaScript という言語がどういう言語なのかわかってきた気がするので、今回はそれを自分なりに整理してみたものを書いていきたいと思います。 JavaScript の非同期処理 JavaScript では非同期な API が数多くあるため、このように let data = someAsyncFunc(); console.log(data); //=> undefined Ruby や PHP のような同期的なスタイルの言語と同じ感覚でコードを書くと、意図した通りに実行されないことがあります。 順番通