2009/05/12

轉貼: Can you pass this JavaScript test?

本來都冇咩心機寫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?

0 comments:

張貼意見