開発環境
- OS X Mavericks - Apple(OS)
- Safari, Firefox + Firebug, Google Chrome(Webプラウザ、プラグイン)
- BBEdit - Bare Bones Software, Inc. (GUI) , Emacs (CUI) (Text Editor)
- JavaScript (プログラミング言語)
Head First JavaScript Programming (Eric T. Freeman (著)、 Elisabeth Robson (著)、 O'Reilly Media )のChapter 8(Bringing it All Together: Building an app)、EXERCISE(p.330)を解いてみる。
EXERCISE(p.330)
コード(BBEdit, Emacs)
var view = { displayMessage: function (msg) { // code to be supplied in a bit print(msg); }, displayHit: function (row, col) { // code to be supplied in a bit print('hit'); }, displayMiss: function (row, col) { // code to be supplied in a bit print('miss'); } }; view.displayMessage('Message'); view.displayHit(1, 2); view.displayMiss(3, 4);
0 コメント:
コメントを投稿