Javascript Code Review - Reviewing and Refactoring Students Code

preview_player
Показать описание
In this video I will be reviewing your Javascript code that people send me and improve it. It always improves your own Javascript code when you see how code was refactored or analysed during reviewing. Reviewing your Javascript code is an easy way to understand better ways if writing code.

FOLLOW ME

REFERENCES

RECOMMENDED VIDEOS

STUFF I USE

Disclosures: All opinions are my own. Sponsors are acknowledged. Some links in the description are affiliate links that if you click on one of the product links, I’ll receive a commission at no additional cost to you. As an Amazon Associate I earn a small commission from qualifying purchases.
Рекомендации по теме
Комментарии
Автор

Awsome video! quick tips and tricks, very helpful as always :D can't w8 to see more of this type of videos !!

iRaionSama
Автор

good video, but here are some notes from me
- you could use destructuring to make your code less
- 7:10 since you're checking for undefined, you should use ??, not || (it doesn't make sense for `false || false`)
- 10:50 in line 4 you create a global variable, never do this. You also get sText length on every loop, it should be stored in a separate variable. Also never call your variable with a capital letter, if it's not a function constructor. And ofс this code is trash and you shouldn't write your own function to detect a number
- use let or const to declare variables
- always use strict equality

stewart
Автор

Very nice video! Is there a way to submit some code to you? I will happily pay you a few bucks to review my code as well. I know it's not much but I'm just a student. Trying really hard to get hired right now. If you can I'd happily submit my code to you, it's just one page of 100 lines, so it's not much. Thank you!

appsenence