ElCanut@jlai.lu to Programmer Humor@programming.dev · 11 hours agoAsking the real questionsjlai.luimagemessage-square101fedilinkarrow-up1640arrow-down14
arrow-up1636arrow-down1imageAsking the real questionsjlai.luElCanut@jlai.lu to Programmer Humor@programming.dev · 11 hours agomessage-square101fedilink
minus-squaredch82@lemmy.ziplinkfedilinkarrow-up11·3 hours agoHello my name is JohnDoe. My name only contains Latin characters, no spaces allowed.
minus-squareKubeRoot@discuss.tchncs.delinkfedilinkEnglisharrow-up10·3 hours 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-squaredch82@lemmy.ziplinkfedilinkarrow-up8·2 hours ago"John Doe" vs ["John", "Doe"] vs {"firstName":"John", "lastName":"Doe"}
minus-squareLemminary@lemmy.worldlinkfedilinkarrow-up1·edit-22 hours agoconsole.log(Object.values(name).join("\n"));
Hello my name is JohnDoe. My name only contains Latin characters, no spaces allowed.
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.
"John Doe"
vs["John", "Doe"]
vs{"firstName":"John", "lastName":"Doe"}