VehiclesFashionRecipesBlogsHuntTravelsSportFunHandmadeITEducation
Mini-Games
x

x
zakruti.com » IT - Software » freeCodeCamp.org
Clean Code: Variables - Beau teaches JavaScript

Clean Code: Variables - Beau teaches JavaScript

FBTwitterReddit

video description

Rating: 4.0; Vote: 1
Learn the best practices of how to write clean code in JS. This video tutorial shows you how easy is to create Javascript variables that are readable, reusable, and refactorable. The video is based on an article from Ryan McDermott. Original article: - https://github.com/ryanmcdermott/clean-code-javascript Code: - http://codepen.io/beaucarnes/pen/EZVmjv?editors=0010 Learn more about variables from Briana Swift: https://youtu.be/NJhXiR1z7Kg?list=PLWKjhJtqVAbmfoj2Th9fvxhHIeqFO7wOy Beau Carnes on
Date: 2022-03-14

Comments and reviews: 2


First, a tip of the hat - Great series! Keep it up! Question 1: Variables - Why/when are you defining FIRST_US_PRESIDENT and MINUTES_IN_A_YEAR in all caps but yearMonthDay and cityStateRegex in camelcase? Question 2: Semicolons - When is it ok to leave the semicolon out at the end of the line ( like you did on line 13, line 22 ) after the for loop ( line 16 ) after a function ( line 34 , line 39), thanks for clarifying!
reply

Off topic, I don't understand the use match method with the string itself, also why the value of the string is so weird, can somebody explain?
reply
Add a review, comment






Other channel videos