ElCanut@jlai.lu to Programmer Humor@programming.dev · 5 days agoAsking the real questionsjlai.luexternal-linkmessage-square209fedilinkarrow-up11arrow-down10
arrow-up11arrow-down1external-linkAsking the real questionsjlai.luElCanut@jlai.lu to Programmer Humor@programming.dev · 5 days agomessage-square209fedilink
minus-squareKubeRoot@discuss.tchncs.delinkfedilinkEnglisharrow-up0·5 days agoAh, but you see, “John” and “Doe” are two names - first and last - and when you say “My name is”, you’re really listing out your names, with spaces inbetween! But then there’s hyphenated names, and I have no idea how those are treated.
minus-squareMonkeMischief@lemmy.todaylinkfedilinkarrow-up0·5 days agoCould be…“Jondo” like, a mononym hahaha.
minus-squaredch82@lemmy.ziplinkfedilinkarrow-up0·5 days ago"John Doe" vs ["John", "Doe"] vs {"firstName":"John", "lastName":"Doe"}
minus-squareLemminary@lemmy.worldlinkfedilinkarrow-up0·edit-25 days agoconsole.log(Object.values(name).join("\n"));
Ah, but you see, “John” and “Doe” are two names - first and last - and when you say “My name is”, you’re really listing out your names, with spaces inbetween!
But then there’s hyphenated names, and I have no idea how those are treated.
Could be…“Jondo” like, a mononym hahaha.
"John Doe"
vs["John", "Doe"]
vs{"firstName":"John", "lastName":"Doe"}