Using Claß Instead of Class
[AskJS] Anyone else use `claß` as a variable name since you can't use `class`? AskJS const claß = "foo"; const element = <div class={claß}></div>; Surely I am not the first? No wtf
A Reddit JavaScript post shows someone using the German letter ß in a variable name, writing `claß` instead of `class` to avoid the reserved keyword. The joke is that this is an absurd and needlessly confusing workaround, immediately rejected by the commenter with “No wtf.” EN: A Reddit JavaScript post shows someone using the German letter ß in a variable name, writing `claß` instead of `class` to avoid the reserved keyword. The joke is that this is an absurd and needlessly confusing workaround, immediately rejected by the commenter with “No wtf.”
- @rzeczyzabawne / 1253 2022-07-01
- Template
- Reddit screenshot
- Type
- image
- Size
- 677×800 · 50.5 KiB
- Mood
- absurd, sarcastic
- Language
- en
- Added