I was once handed a document that said “Surname:” so I wrote my last name. Then the next line was “Last Name:”…so I wrote my last name, again.
The lady I handed it back to made fun of me for not knowing what “Surname” meant.
Don’t both of them mean the same thing?
YES!
So what did she think it means?
LastName = Name[1]
The only right answer… But wouldn’t
Name[1]
be ‘e’ in this case? I would add a.split(' ')
to avoid confusion.So the full answer would be
Name.split(' ')[1]
Why do I always over think stuff like this…
Edit: they also shouldn’t capitalize variable names
There’s a reason I refuse to try parsing names as a string separated by spaces.
Separate fields, bitches.
Love me some JS brother
Could be the middle name though, better use name[name.length-1]
That’s when you circle the last name and draw an arrow towards the correct field!
Well the field says Name. That’s his name.
Something about this one really hit me. I think it’s his face just blankly staring.
Dude I’m laughing my ass off
Happened to me several times. I always wanted to scream, but I had to be quiet so I just thought “AAAAAAAAAAAAAAAA”
Peter Pee Parker
No, I wasn’t there ever. 😄