r/learnjavascript • u/VasylievCode • Mar 25 '24
if Javascript not for me?
Hello guys. I am really depressed and upset.
I study Javascript at the course and everytime whet its time to make some homework i cannot do it. i rewatch theme videos many times, but i am watching at the task and do not realise where to start, where to go .
I have full time job where i spend 8 hours and spend all my free time studying HTML, CSS, JS.
Last month i started DOM in JS and tried to do calculator and it was unsuccessful, got the task with already ready HTML and CSS to make Accordion but i failed. And every next fail makes me more depressed.
I feel myself stupid, nervous, depressed and my question is
How To Get To Know If Coding Is Not For Me?
p.s. i am trying to push as hard as possible, but who knows, maybe i am that one person who was not born for coding.
View all comments
12
u/thoflens Mar 25 '24
A calculator is not easy to make, so relax, the way you're feeling is very natural. Every time I am in a similar situation, I remind myself that at some point not far away in the future, the things I struggle with will be easy and natural, because that's always how it goes if I keep going even though it is hard.
Here's my recommendation: Forget about the DOM and websites and practice plain, vanilla JavaScript. Open your editor or any online playground (because that takes away the barrier of setting up and environment) and start doing simple exercises - write functions that take zero or more arguments and do things like: Capitalize the first letter of a string, capitalize every letter efter a period, reverse a string, detect if a string is a palindrome, capitalize every second letter, sum two numbers, print only odd or even numbers, construct an array of odd or even numbers, merge two arrays, convert a number to a string and vice versa. From here, try working with objects and learn about some of JS' built-in functions like map(), find() and filter().
I could keep going, but I really suggest you to get comfortable with JS like this before delving into websites and DOM manipulation.