What is the standard convention naming for property inside object?
camelCase
or
snake_case?
Here's an example:
let objPerson = {
first_name: 'first',
last_name: 'last'
};
or
let objPerson = {
firstName: 'first',
lastName: 'last'
};
Any recommendation for a site to learn naming standardization of objects? I tried to google it but couldn't find an answer. Also the name of the object should be objPerson
or ObjPerson
because it is an object