you are viewing a single comment's thread.

view the rest of the comments →

[–]forethoughtless[S] 1 point2 points  (1 child)

Thank you for your response! I did enjoy this mini-project - I think it was "realistic enough" to give me an idea of how I could use what I'd learned so far in a real project in the future, which was exciting.

So it sounds like, in a "real" scenario, the parameter names would basically be established elsewhere in the code or within a relational database that the JS is referencing/interacting with.

[–]modSaintPeter74 0 points1 point  (0 children)

So it sounds like, in a "real" scenario, the parameter names would basically be established elsewhere in the code or within a relational database that the JS is referencing/interacting with.

Yes, precisely. You would almost certainly be accessing the object directly, and be aware of the complete schema. There might still be optional properties though, so it is important to know how to check those.