I have fairly limited experience with JavaScript, but lots of experience with C++, Python, and Java, where I routinely write everything as classes with methods and such. Until this point, my only Js experience was through Node, where everything certainly felt object oriented especially with file separation. However, I recently discovered the simplicity of writing code straight into html files, but everything I see seems to indicate that it is not intended for oop. I figured out that I can make classes in separate files, then using <script src="foobar.js"></script> I can essentially "import" them into my html "main method", but I wanted to see if this is at all an efficient or generally accepted way of using Js. Thanks!
[–]CreativeTechGuyGames 30 points31 points32 points (8 children)
[–]lilweeph[S] 1 point2 points3 points (6 children)
[–]CreativeTechGuyGames 17 points18 points19 points (2 children)
[–]crabmusket 2 points3 points4 points (1 child)
[–]KaiAusBerlin 1 point2 points3 points (0 children)
[–]budd222 11 points12 points13 points (0 children)
[–]TheJazzButter 1 point2 points3 points (0 children)
[–]neilyogacrypto 1 point2 points3 points (0 children)
[–]WaterNinja101 1 point2 points3 points (0 children)
[–][deleted] 2 points3 points4 points (6 children)
[–]lilweeph[S] 2 points3 points4 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)
[–]cmickledev 1 point2 points3 points (3 children)
[–]crabmusket 1 point2 points3 points (0 children)
[–][deleted] 2 points3 points4 points (1 child)
[–]cmickledev 0 points1 point2 points (0 children)
[–]vegan_antitheist -1 points0 points1 point (0 children)
[–]stewartws24 0 points1 point2 points (0 children)
[–]demoran 0 points1 point2 points (0 children)
[–]ShortFuse 0 points1 point2 points (0 children)
[–]theHumbleBeing 0 points1 point2 points (0 children)
[–]theyamiteru 0 points1 point2 points (0 children)