When should I use double or single quotes in JavaScript?

前端 未结 30 3365
攒了一身酷
攒了一身酷 2020-11-21 05:02

console.log("double"); vs. console.log(\'single\');

I see more and more JavaScript libraries out there using single quotes when ha

30条回答
  •  感动是毒
    2020-11-21 05:23

    If you're jumping back an forth between JavaScript and C#, it's best to train your fingers for the common convention which is double quotes.

提交回复
热议问题