I have been going through several questions such as this to see if there is a standard practice/ best practice for whether to put quotes on keys in JavaScript or JSX or TSX. I, however, haven’t found anything and would like to know (before building a huge project on bad practices) which is best between:
obj = {'foo': 'bar'}
and
obj = {foo: 'bar'}
Or better yet, is there some document I can refer to for this?