Thanks I Hate Variable Variables

Thanks I Hate Variable Variables
javascript-memes, variables-memes, const-memes, var-memes, declaration-memes | ProgrammerHumor.io

JavaScript developers really woke up one day and said "Let's create four different ways to declare variables, each with subtly different rules that will absolutely destroy newcomers' sanity." And then they had the audacity to add const const which is technically valid syntax. The real horror is that last example where var var lets you mutate your string into whatever Lovecraftian nightmare you want. No wonder half of Stack Overflow is just people asking "why doesn't my variable work?" Ten years of experience and I still occasionally get bitten by this nonsense.

More Like This