Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
efdee
on Sept 27, 2022
|
parent
|
context
|
favorite
| on:
Named element IDs can be referenced as JavaScript ...
It takes a special kind of human to name variable "name" but not have it be a string.
orangecat
on Sept 27, 2022
|
next
[–]
Something like
name = {first: "Jane", last: "Doe"}
isn't obviously unreasonable. Which actually sets name to the string "[object Object]".
eyelidlessness
on Sept 27, 2022
|
parent
|
next
[–]
Falsehoods programming languages believe about names.
sanitycheck
on Sept 27, 2022
|
prev
|
next
[–]
I work with such humans! I was looking at that exact situation a few moments ago.
Minor49er
on Sept 27, 2022
|
prev
[–]
I can imagine someone doing this if they were using "name" as a verb
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: