Coding Style thumbnail
Coding Style
javascript.info
Code first, then functions Linters are tools that can automatically check the style of your code and make improving suggestions. Insert an extra newline where it helps to make the code more readable. There should not be more than nine lines of code without a vertical indentation. the opening brace o
2 Users
0 Comments
10 Highlights
0 Notes

Top Highlights

  • Code first, then functions
  • Linters are tools that can automatically check the style of your code and make improving suggestions.
  • Insert an extra newline where it helps to make the code more readable. There should not be more than nine lines of code without a vertical indentation.
  • the opening brace on the same line as the corresponding keyword – not on a new line. There should also be a space before the opening bracket
  • For a very brief code, one line is allowed, e.g. if (cond) return null. But a code block (the last variant) is usually more readable.

Ready to highlight and find good content?

Glasp is a social web highlighter that people can highlight and organize quotes and thoughts from the web, and access other like-minded people’s learning.