2

I am learning Nodejs from scratch and I would like to make it a habit of using either single quote or double quote in Node.js. I read few answers elsewhere in Stackoverflow which said that it's purely dependent on the coding style used by the team.

So, which one should I use? Or rather, which one does the expert programmers use? in Apis and elsewhere.

Castor troy
  • 47
  • 1
  • 5

1 Answers1

0

Basically you should use single quote. In javascript it is most common to use single quote. Also when you use the eslint, it will show error when using double quote. So, better practice is to use single quote. And, finally it depends on your coding style.

Devendra Verma
  • 975
  • 2
  • 10
  • 24