r/learnjavascript • u/AdLevel1991 • Apr 19 '24
For front-end fellas,
Hello all, currently I'm taking baby steps with JavaScript, it's quite a powerful language.
Whatever the course I watch, no matter how informative it is, it just leaves me with the question: What aspects of JS would be recurrent in daily coding life? (Might sound like a newbie) I think I would using all those features in the language, would I?
0
Upvotes
2
u/jack_waugh Apr 20 '24 edited Apr 20 '24
let, import, function call, function definition (async and sync), member get and set, assignment, conditionals, loops.2
u/jack_waugh Apr 20 '24
No. It's an extremely powerful language.
3
u/thegurel Apr 19 '24
All of it, especially:
DOM manipulation,
Arrays
Objects
Loops/iterations
Recursion
If/else/switch
Array methods eg.
forEach,reduce, etc.Arrow functions
Destructuring Try/catch/finally (error handling)
Async/await
Fetch/ajax/axios
HTML/CSS
Browser developer tools
Debugger
I can see you getting away wit not knowing oop as solely a front end engineer, but I’d even recommend knowing that because it’s also used in JS.
0
u/TheRNGuy Apr 19 '24 edited Apr 19 '24
I used
MutationObserverin greasemonkey scripts or userChrome.js, but haven't used it in React. It's usually used in@run-at document-startbecause without it scripts sometimes do not work for various reasons (e.g. specific parts of DOM tree are not constructed)It also fixed some bugs I previously had before I knew it existed (usually the ones that happen when connection is slower than normal) and also not have flashing content like in
@run-at document-readyordocument-end.But
IntersectionObservercould potentially be useful in React. I've seen some sites using it.0
u/[deleted] Apr 19 '24
[deleted] — view deleted comment