Well written JavaScript code?

Well written JavaScript code?
0

#1

Hi, I’m currently trying to figure out how to organize code, avoid spaghetti code, and other stuff like that.

I’ve completed FCC front-end 6 months ago, and I would like to compare my projects code with “good code”.

Could you please provide me with examples of well written freecodecamp advanced front-end curriculum projects ? (preferably Vanilla JS or jQuery, since I haven’t learnt Angular or React yet).

edit : ES6 is welcome.


#2

i currently doing the same thing

this video show how he changes his spaghetti code to nice modular organised code and i found it very good and well worth watching
https://www.youtube.com/watch?v=HkFlM73G-hk&list=PLoYCgNOIyGABs-wDaaxChu82q_xQgUb4f

also here is a link to a repl sheet i wrote his code in to practice … made a few changes as he uses a mustache js library which i didnt know how to use … and i changed a little of it so i could do something different
It just shows how neat and tidy the code can look if thought is put in
https://repl.it/EMG4/12
so i hope to be able to do coding more like this than what i usually do


#3

Thank you ! Exactly what I was looking for.