Learn JavaScript style JavaScript


show more In programming, style decisions matter for you and for other developers on your team. You want your JavaScript code to be readable, consistent, and recognizable to other developers. Learn best practices for naming conventions, positioning of curly braces, using code blocks, defining functions, and declaring variables in JavaScript. show less
please wait ...

Understanding JavaScript style

When we talk about style with programming languages, we're moving away from the rules of how you must and must not write JavaScript into more of how you should and shouldn't write it. So how should you name your variables, where should you put your braces, what should you call your functions, and where should they be placed in your code? Because this matters. Style decisions matter for you and for other developers on your team. You want your code to be readable, you want it to be consistent, and you also kind of need to play along with how everyone else in the world is writing their JavaScript, because that's going to make it easier to read example code and read books and, more importantly, recognize whether that code is written well.

And style matters simply because JavaScript is the most publicly viewable programming language in the world. Unlike a desktop application, with JavaScript running on a web page, all your code is sent to whoever requests it. Every client's brows...

Understanding JavaScript style
Video duration: 7m 39s 5h 31m Beginner

Viewers:

In programming, style decisions matter for you and for other developers on your team. You want your JavaScript code to be readable, consistent, and recognizable to other developers. Learn best practices for naming conventions, positioning of curly braces, using code blocks, defining functions, and declaring variables in JavaScript.

Subjects:
Developer Web
Software:
JavaScript
Author:
please wait ...