Boring bait. Leave the zoo now.
Konlanx
Being rich implies you are evil. If you were good, you would give back to the people who create your wealth.
A good person understands they are not entitled to that much money with so much bad things in the world nor need it in the first place to live a decent live.
(30,27): error TS7006: Parameter 'fuck' implicitly has an 'any' type.
Read a book! Best way to get the brain to calm down.
This is due to the default sorter in JavaScript sorting by the string value. The reason for that is that this won't create errors at runtime. Since JavaScript does not have types, this is the safest way of sorting.
This works:
const unsorted = [1, 100000, 21, 30, 4]
const sorted = unsorted.sort((a, b) => a - b)
Same the other way around. I (european) regularly read about "100 degrees weather" somewhere in the US and my first thought always is "damn, that's as hot as boiling water".
JS !== Java
Try Javascript some day!
- We have truthy and falsy! Empty string or null? Yeah, that's false!
- Of course we can parse a string to number, but if it's not a number it's NaN!
- null >= 0 is true!
- Assign a variable with =, test type equality with == and test actual equality with ===. You will NEVER use the wrong amount of = anywhere, trust me!
- Our default sort converts everything to string, then sorts by UTF-16 code. So yes, [1, 10, 3] is sorted and you are going to live with it.
- True + true = 2. You know I'm right.
Try Javascript today!
When using current reddit UI, you need to log in to "verify you are over 18".
When using old.reddit.com you can proceed with a simple click on "Confirm over 18".