this post was submitted on 13 Nov 2023
13 points (88.2% liked)

JavaScript

2460 readers
8 users here now

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[โ€“] shnizmuffin@lemmy.inbutts.lol 2 points 2 years ago (1 children)

In your example, without the comment, I'd have no way of knowing it was a customer ID I'm getting, unless the only objects with IDs are customers.

[โ€“] relevants@feddit.de 0 points 2 years ago

I mean, the example kinda implies that this is on a Customer type. Otherwise you'd have a method getCustomerId instead.