開発環境
- 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 6(Interacting with Your Web Page: Getting to know the DOM)、SHARPEN YOUR PENCIL(p.246)を解いてみる。
SHARPEN YOUR PENCIL(p.246)
you can turn back pages but not time
確認。
The
has come
braggin'
if you can
back
it up!
I'm not funny but I do laugh a lot
- Please
- turn
- the
- pages
- one at a time!
コード(BBEdit, Emacs)
var e7 = document.getElementById("e7"), e8 = document.getElementById("e8"), e16 = document.getElementById("e16"), e9 = document.getElementById("e9"), e18 = document.getElementById("e18"), e13 = document.getElementById("e13"), e12 = document.getElementById("e12"), e2 = document.getElementById("e2"), elements = [e7, e8, e16, e9, e18, e13, e12, e2], i, max, result = ''; for (i = 0, max = elements.length; i < max; i += 1) { result += elements[i].innerHTML; } print(result);
0 コメント:
コメントを投稿