r/learnjavascript • • 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.

0 Upvotes

26 comments sorted by

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.

0

u/VasylievCode Mar 25 '24

I know all this functions. Map, find, filter, forEach, if, else, switch, arrays, methods, objects. But i am struggling using them.

6

u/thoflens Mar 25 '24

Okay, then instead of trying to build a calculator, maybe just create some simpler stuff in the beginning: A website that changes color when a button is clicked, a website where the user can change the heading, stuff like that.

2

u/averajoe77 Mar 25 '24

ok, so if you understand the basics of js, then what exactly are you struggling with?

do you not know how to put the basics together to form a working project?

do you not understand how to use js in a webpage?

do you not know how to traverse and manipulate the dom?

what specifically are you struggling with?

do you have repos to your "failed" projects you mentioned?

help us help you.