How To Write Clean Code! | JavaScript Pro Tips (2021)


🦸 Become A VS Code SuperHero Today: https://vsCodeHero.com
🧑🏾‍🤝‍🧑🏽 Join my Discord developer community: https://discord.gg/A9CnsVzzkZ

Do you want to write code like a pro? In this video, I’ll give you some examples of code that works, but could be written better. Make sure you watch through all of the examples so that you can learn how to start writing clean, professional code.

Inspiration for this video came from this repo from Ryan McDermott:
Clean Code JavaScript – https://github.com/ryanmcdermott/clean-code-javascript

@James Q Quick – Quokka.js VS Code Extension – https://youtu.be/yeZa4QsX38w
_____________________________________

🤖 Get FREE AI-powered code completions from Kite: https://www.kite.com/get-kite/?utm_medium=referral&utm_source=youtube&utm_campaign=codestackr&utm_content=description-only
📚 FREE 7-Day trial at Treehouse: https://treehouse.7eer.net/codeSTACKr
_____________________________________

🛠️ Tools I use:
🟠 codeSTACKr Theme: https://marketplace.visualstudio.com/items?itemName=codestackr.codestackr-theme
🟠 STACKr Code Font (Exclusive to my VS Code Course – https://vsCodeHero.com)
🟠 SuperHero Extension Pack: https://marketplace.visualstudio.com/items?itemName=codeSTACKr.superhero-extensions
_____________________________________

⏱️ Timestamps ⏱️
00:00 – Intro
00:35 – Declaring Variables
00:59 – Assigning Values
01:23 – Naming Variables
03:18 – Don’t Rely on Developer Memory
03:55 – Unnecessary Context
04:34 – Destructuring
05:31 – Objects & Guard Clauses
07:39 – Default Arguments
08:54 – Conditional Shorthand
09:34 – Template Literals
11:19 – Write Linear Code
13:02 – Single Responsibility Principle
14:38 – Don’t Use Flags
16:34 – Avoid Side Effects
18:41 – Spread Operator
19:46 – Optional Chaining
20:37 – Ternary Operator
22:02 – Default Values
23:04 – Swap Two Variables
23:59 – Arrow Functions
24:57 – String to Number
_____________________________________

💖 Show support!
PayPal: https://paypal.me/codeSTACKr
_____________________________________

👀 Watch Next:
Playlist: Web Development For Beginners – https://www.youtube.com/watch?v=Ez4yHS2dsN8&list=PLkwxH9e_vrAJ0WbEsFA9W3I1W-g_BTsbt
_____________________________________

🌐 Connect With Me:
Website: https://www.codestackr.com
Twitter: https://twitter.com/codeSTACKr
Instagram: https://instagram.com/codeSTACKr
Facebook: https://facebook.com/codeSTACKr
_____________________________________

** Affiliate Disclaimer: Some of the above links may be affiliate links, which may generate me a sales commission at no additional cost to you.

#codeSTACKr #JavaScript #learntocode

Things to Consider While Looking Out for the Right Web Development Company

As a business that’s planning to move onto an online platform, your primary requirement will obviously be a website. However, creating the right website isn’t a joke. You’ll need the right type of skills to execute this sort of thing and that can be found only in a web development company. But, finding the right one for your requirements can be a daunting task. So, here are a few tips to help you out.

Joomla 3.3 VS Joomla 3.4

Joomla is the favorite of all the developers owing to its extensive features. As the features get updated they are released for public usage as the more supportive version. Presently, the supportive version is 3.4.

A 15 Point Checklist for More Profitable Product Pages

The product pages of your website are your showroom and they must be displayed properly to achieve maximum results. This does not mean that all product pages should look alike.

Essential Features to Create an Ideal E-Commerce Website

An e-commerce website fulfills the shopping desire of online shoppers. In this way, the procedure of shopping has become quite easier and people can easily indulge themselves in online shopping at any time.

Don’t Be Hasty in Writing Content for a Mobile Audience

Mobile has completely held the reigns in its hands to rule the world. It is but obvious and should be taken into consideration that your customers are hooked up on their screens every moment. Following are the points that justify how to create content with the existing time gadget-dependent consumers

You May Also Like