@daniloparrajr
Posted
I like that your javascript code is readable! My suggestion is to follow the guidelines here https://github.com/ryanmcdermott/clean-code-javascript.
I noticed that some parts of your js code have a chain of else if statements which is not ideal. You can read more here on why - https://dev.to/dglsparsons/write-better-code-and-be-a-better-programmer-by-never-using-else-statements-4dbl
Also, it is ideal to ditch jquery in today's standard as modern javascript can pretty much handle all that you need. You can check some alternatives here - https://youmightnotneedjquery.com/
If you want to make your JavaScript knowledge better I recommend this course https://learnjavascript.online/
I hope this are all helpful! happy coding!
Marked as helpful
@ArtemPonomarenko
Posted
@daniloparrajr, Thanks! I really appreciate the reading materials