h1

轉貼: Can you pass this JavaScript test?

五月 12, 2009

本來都冇咩心機寫blog… 而且就算寫都應該寫埋 Wolverine 既介紹同兩句意見…
不過見到呢個 Test, 都係忍唔住要轉貼一下…

Guess what each expression evaluates to:

1. ++Math.PI
2. (0.1 + 0.2) + 0.3 == 0.1 + (0.2 + 0.3)
3. typeof NaN
4. typeof typeof undefined
5. a = {null:null}; typeof a.null;
6. a = “5″; b = “2″; c = a * b;
7. a = “5″; b = 2; c = a+++b;
8. isNaN(1/null)
9. (16).toString(16)
10. 016 * 2
11. ~null
12. “ab c".match(/\b\w\b/)

根據答岩既數目… 有如下評價:

(correct answers: score)
5 – 7: KNOWLEDGEABLE
8 – 10: EXPERT
11: SAVANT
12: MASTER OF THE UNIVERSE

小弟…岩左5 題… 剛剛好是 Knowledgeable… 都算對係ok 吧~

答案: Can you pass this JavaScript test?

發表迴響

在下方填入你的資料或按右方圖示以社群網站登入:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 變更 )

Twitter picture

You are commenting using your Twitter account. Log Out / 變更 )

Facebook照片

You are commenting using your Facebook account. Log Out / 變更 )

Google+ photo

You are commenting using your Google+ account. Log Out / 變更 )

連結到 %s

%d 位部落客按了讚: