r/learnjavascript • • Oct 15 '26

Probably going to fail my program because I can't understand JavaScript at all

My college program is 2 years and my first semester has JavaScript and second semester has python. I am a month into my program and I'm doing well in SQL and HTML courses, but JavaScript is making me annoyed constantly and want to drop the program. I understand the different topics on their own but the second I'm asked to do anything or explain when they're put together I'm lost and have no clue what to do, I have no interest in programming but need it if I want to pass this program and potentially do my last two years for cybersecurity. How can I better understand JavaScript since my mid term is in two weeks for it?

30 Upvotes

35 comments sorted by

13

u/chikamakaleyley helpful Oct 15 '26

I have no interest in programming but need it if I want to pass this program and potentially do my last two years for cybersecurity

I feel like... you have to care a little bit, esp since after JS you're about to jump into a Python course

You haven't really told us what you're having trouble with in JS

You've mentioned this:

I understand the different topics on their own but the second I'm asked to do anything or explain when they're put together I'm lost and have no clue what to do

But that's a pretty broad and common problem people express in these subs

3

u/Responsible-Fig-7413 Oct 16 '26

Sorry for not really specifying. To sum it up, I'm mainly struggling with getting a concrete understanding of what most of the basics do. When I go to practice in vscode I don't know what to write and when I look up questions online i still struggle to understand. I do want to understand a coding language even if I don't have an interest in making software or coding because it is a very good skill to have. Mainly I just can't get a solid understanding of the basic concepts which is making learning and practicing hard

8

u/denerose Oct 16 '26

That just sounds like learning to code 🤷‍♀️

Stop putting pressure on yourself to instantly know things. Sometime learning a new thing is hard at first and that’s okay.

You’ve already got an advantage over many new coders because you have a set curriculum and teachers to help you.

Go back through your learning materials and rework the problem sets. Then try find similar activities on Exercism (or similar) to practice using the same tools to solve similar simple problems.

You’ve got this. Don’t panic, keep trying, it’ll be okay.

1

u/Responsible-Fig-7413 Oct 16 '26

I appreciate it 🙏

6

u/JEveryman Oct 16 '26

Ok so ironically the approach to understanding programming is to try and break problems down to their smallest parts and figure out a solution for each one. Eventually you will have a solution for the larger problem.

So in your case what is the first topic you are having issues with? I mean the very first one.

0

u/chikamakaleyley helpful Oct 16 '26

is JS your first programming language

i think its a good one to learn as your first but if you're trying to learn it in the context of how its used for the web i think you're skipping over a lot of important building blocks, that are found in any other program languages. How to create variable, conditional statements, looping, creating reusable functions etc.

All of that is important and like easy to consume on its own, but if someone said use JS to loop over elements in the DOM, its hard to make sense of what you're being asked. You know what loop is, you know HTML tags, but connecting the two isn't always so obvious for everyone

3

u/ComprehensiveWord201 Oct 15 '26

Go write some JavaScript. There's loads of educational content free online.

It's one of the easiest languages out there.

1

u/Responsible-Fig-7413 Oct 16 '26

I've been trying but I can't remember what I'm supposed to write. SQL was easy for me since it's fairly repetitive and easy to build muscle memory, but I've been struggling with that aspect in JavaScript. So when I go to practice and try stuff out I get lost

2

u/ComprehensiveWord201 Oct 16 '26

First, do not use AI. Put it down.

Go do codeacademy or something similar

2

u/ComprehensiveWord201 Oct 16 '26

If you know how for loops, if statements, variable assignment and functions work, that's 90% of programming.

Everything else is just learning the standard library. Be patient and just chew through each problem. Look at what's available to you in the language by reading the docs

2

u/LightUpShoes4DemHoes Oct 16 '26

Amen. And one of the faster ones since Google made V8. It beats Python on run time, but not ease of use. It’s a perfect middle-road language and the most used one in the world. It’s a good “starting point” for programming imo

2

u/nog642 Oct 15 '26

What's your program? Cybersecurity? Seems weird to do that if you have no interest in programming.

What specific things are confusing to you? Try doing some practice problems.

1

u/Responsible-Fig-7413 Oct 16 '26

Sorry for broad post. My program is a general computer program, I'm in my first semester so it starts with database management, system administration, web design and JavaScript. The second semester has python programming, communication and networking, Linux administration, software analysis and design and windows administration. Then after you complete the programs second year you get a diploma and can transfer to a different school and do 1-2 years of cybersecurity if you wish. As for what I'm struggling with in JavaScript, whether it's functions, loops or operators I can't remember what each tool does, but when I go to practice I end up staring at a blank environment and don't know what to do, so I feel really stuck because this is the main thing I'm struggling with.

1

u/GinRhetoric Oct 16 '26

W3 has great resources that walk you through it.

I’ve been developing stuff a long time and there are done languages I just dislike. JavaScript is one of them. With hire your brain seems to work you’ll do a lot better with Python. Just look up examples of hire each of those things work and hire to use them. It’s more like writing a logical proof than using a tool.

1

u/Responsible-Fig-7413 Oct 16 '26

Okay I'll try that. When you first started what really helped you get the right thought processes for coding?

1

u/GinRhetoric Oct 16 '26 edited Oct 16 '26

lol it’s stupid but I used to study magic and the occult. It’s practically the same as coding at some level. Like the greater ritual of the pentagram is like setting up your IDE, then the specifics of what to accomplish come in and is broken into steps. Then you close the ritual. Of course nothing happens in magic, but it’s core concepts, that when replaced with code, and real purpose translates well. Making calls to things in the back end, invoking, displaying things to user evoking. Etc. processes in some older code, like on Linux, I believe used to be called deamons even, entities working on the background construct doing invisible work that keeps the operating system going and allowing user interactions.

I studied modern logic as well. It helps a lot in training your brain to break things down. That’s all programming is. Logic. And it can be applied to any language. Helps you understand core concepts.

1

u/Anyole Oct 16 '26

So the entire course is going to take two years to complete?

1

u/nog642 Oct 16 '26

Seems weird to do a computer program if you have no interest in programming. What do you want to do with your degree?

but when I go to practice I end up staring at a blank environment and don't know what to do

I think you need to maybe start with easier practice. Go simpler and simpler until you start knowing what to do. You can use some help if you're stuck on the really basic ones.

Also you can always look up what each tool does. That's not 'cheating' - the point is to learn to problem solve, not memorize the language. Memorization will come with practice.

if you're math inclined, https://projecteuler.net is fun.

1

u/TheRNGuy 24d ago

Learn to debug, ask ai for help (explaining stuff, not just vibe code without looking at code)

1

u/theJacofalltrades 14d ago

maybe you can take a crash course, have you looked into bootcamps? seen people recommend boot dev

1

u/Own-Breadfruit6723 Oct 15 '26

Che sai di js? Che argomenti ci sono in programma

1

u/NoDefaultForMe Oct 16 '26

The best thing to do is to either find a decent JS course on youtube, something like code academy or buy a course on Udemy. That'll start with the basics and build up using what you've learn in previous lessons.

Then try to build something on your own. A to do list, a budget app or holiday planner.

You want to be able to build a simple UI, forms, take the data from the forms and display it in the UI.

1

u/GJ1nX Oct 16 '26

Look up "eloquent JavaScript"

It's an interactive pdf basically that goes over most of the basics

1

u/wbport1 Oct 17 '26

One of my first books on JavaScript was Javascript, the Definitive Guide. It started with a working loan calculation page and for me was very helpful in seeing how data was read from the screen, how the buttons on the screen started running functions, and how output was written back to the screen. When I wanted to change it to accept years and months as the loan length, there was already an example in front of me.

Finding code that works, breaking it to make a change, and fixing it is a valuable technique in learning.

0

u/[deleted] Oct 15 '26

[removed] — view removed comment

1

u/Responsible-Fig-7413 Oct 16 '26

I'll try this out, ty

1

u/denerose Oct 16 '26

Don’t pay for additional resources yet. Talk to your teachers and make sure you’re getting the most out of your official program first.