why “Single-quoted string preferred over double-quoted string.” in js?
问题 While using gjslint, I got a hint: "Single-quoted string preferred over double-quoted string". So why? I'm a little confused with this. Why single-quoted preferred? Hope to get some help. Thanks all. 回答1: It's just somebody's opinion. Lots of people do prefer singe-quotes, but lots of other people prefer double-quotes. I tend to use double-quotes just out of habit from other languages, but I don't have a strong preference: I'm willing to change if I hear of a compelling reason why single