JavaScript Exam Results
> typeof NaN "number" > 9999999999999999 10000000000000000 > 0.5+0.1==0.6 true > 0.1+0.2==0.3 false > Math.max() -Infinity > Math.min() Infinity > []+[] "" > {}+{} "[object Object]" > {}+[] "[object Object]" > true+true+true===3 true > true-true 0 > true+true 2 > false false > [1]+[1]+[1].length 9 > "2"*2 4 > "2"+2 "22" > []==![] true
A student hands over an absurdly long JavaScript test full of surprising type-coercion results and floating-point quirks. The joke is that JavaScript behaves in unintuitive ways, making the student look suspiciously angry at the person who submitted these answers. It is used as a reaction to confusing code, bizarre programming bugs, or JavaScript’s notorious inconsistencies. EN: A student hands over an absurdly long JavaScript test full of surprising type-coercion results and floating-point quirks. The joke is that JavaScript behaves in unintuitive ways, making the student look suspiciously angry at the person who submitted these answers. It is used as a reaction to confusing code, bizarre programming bugs, or JavaScript’s notorious inconsistencies.
- @profunctor_io / 4093 2020-03-02
- Type
- image
- Size
- 456×800 · 62.9 KiB
- Mood
- confused, sarcastic
- Language
- en
- Added