I wrote the code, checked it through JSLint, he writes that it is necessary to write in 2 spaces, and I used to write through the tab, which includes 4 spaces. And I watch the video course on JavaScript, there the teacher also puts 2 spaces. Why is that? I do not want to cause any disputes, I just thought that 2 spaces are correct, and 4 are not.
Closed due to the fact that it is necessary to reformulate the question so that it was possible to give an objectively correct answer by the participants Dmitriy Simushev , Vladimir Martyanov , D-side , soledar10 , Alexey Shimansky 14 Sep '16 at 16:49 .
The question gives rise to endless debates and discussions based not on knowledge, but on opinions. To get an answer, rephrase your question so that it can be given an unambiguously correct answer, or delete the question altogether. If the question can be reformulated according to the rules set out in the certificate , edit it .
- fourBecause they do not understand anything in life. Need 4 spaces! ( Well, the question about subjective preferences and therefore oftopik. ) - Dmitriy Simushev
- oneAll know that you need to put four spaces. =) - HamSter
- oneEveryone knows that the number of spaces through the Tab is configurable. - Vladimir Martyanov
- one"And they are so accustomed." In the Ruby community, the norm is also two spaces, it is fixed in the community style guide. - D-side
- one@ D-side, Because they do not understand anything in life. Need 4 spaces! :-D - Grundy
|