@[email protected] to Programmer [email protected] • 12 hours agoAsking the real questionsjlai.lumessage-square124fedilinkarrow-up1716
arrow-up1716imageAsking the real questionsjlai.lu@[email protected] to Programmer [email protected] • 12 hours agomessage-square124fedilink
minus-squareKubeRootlinkfedilinkEnglish12•4 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-squaredch82linkfedilink10•3 hours ago"John Doe" vs ["John", "Doe"] vs {"firstName":"John", "lastName":"Doe"}
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"}
console.log(Object.values(name).join("\n"));