DEV Community

Discussion on: JavaScript and manipulating the DOM

Collapse
 
ben profile image
Ben Halpern

Yeah, asking why a lot will indeed make you great.

But it's also a complicated craft, and the why questions go deeper and deeper and deeper, don't be afraid to always just do and let the why figure itself out as you go.

Thread Thread
 
nicostar26 profile image
Nicole Saunders πŸ’»πŸŒΉ

True! I just got through learning JavaScript basics so there's definitely a lot I still have to learn about it. Any tips on practicing the basics? Not quite sure what to do in that aspect. I've created some very simple things like "what's the biggest number" that my kids actually like messing around with, I've done a simple password validation function... things like that.

Thread Thread
 
alephnaught2tog profile image
Max Cerrina

I have gotten a ton of mileage out of seeing things on posts or on sites or just mentioned and going "I wonder if I can do that." Even if it's a huge fail -- you can learn a ton by trying. I know I also learned a ton reinventing a billion wheels. So sort of -- how to do things super manually. How to copy an entire HTML element "by hand" with JS -- don't use any packages or helpers, just builtin browser APIs. How can you use JS to get that element, all in contents and everything, to another spot in the page? that kind of thing.

Thread Thread
 
nicostar26 profile image
Nicole Saunders πŸ’»πŸŒΉ

I didn't even know it was possible to recreate just in JavaScript. It's definitely a powerful language. Thanks!

Thread Thread
 
johnkazer profile image
John Kazer

You can do so many different things with the same code: desktop app, chat bot, website, Excel addin, web API... Such a wonderful gain in efficiency, collaboration and knowledge sharing that any inefficiencies of the actual code are really insignificant in comparison.

Thread Thread
 
bgadrian profile image
Adrian B.G.

I actually try to keep an up-to-date list of what you can do with JS, and is challenging :))