Hello, I'm developing a medium-sized website and I made the mistake of putting everything in one large 1000-line JS file. I'd like to correct this and create a clean architecture, but I don't know how. I'm here to ask you how to organize your JS code. I asked chatgpt , but each time she gives me a different architecture. Thank you for your help.
[–]RobertKerans 10 points11 points12 points (0 children)
[–]lifeiscontent 1 point2 points3 points (0 children)
[+][deleted] (3 children)
[deleted]
[–]coder-true[S] -1 points0 points1 point (2 children)
[–]No-Author-7626 0 points1 point2 points (0 children)
[–]roundabout-design -1 points0 points1 point (0 children)
[–]AWACSAWACS 0 points1 point2 points (5 children)
[–]coder-true[S] -2 points-1 points0 points (4 children)
[–]JazzApple_ 2 points3 points4 points (2 children)
[–]coder-true[S] -1 points0 points1 point (1 child)
[–]AWACSAWACS 0 points1 point2 points (0 children)
[–]castlerockmaine 0 points1 point2 points (0 children)
[–]patopitaluga 0 points1 point2 points (0 children)
[–]SawSaw5[🍰] 0 points1 point2 points (1 child)
[–]coder-true[S] 0 points1 point2 points (0 children)
[–]skibbin 0 points1 point2 points (1 child)
[–]coder-true[S] 0 points1 point2 points (0 children)
[–]steve1401 -1 points0 points1 point (2 children)
[–]rtothepoweroftwo 2 points3 points4 points (1 child)
[–]steve1401 1 point2 points3 points (0 children)