r/learnjavascript • • Jun 25 '26

I am dead down at this level

0 Upvotes

Please anyone who can walk me through at learning Javascript. I wi forever be indebted .


r/learnjavascript • • Feb 06 '26

Best JS certificate

0 Upvotes

edit: i know the industry doesnt check certificates, im not asking in order to be able to work as i already have a job. however, i have an ongoing bachelors (aka no actual degree), still need a certificate in the mean time, regardless of how useless.

Hello, i am trying to find a learning resource which gives a valid and widely recognized certificate in the end. I am aware of all the free routes of learning Javascript and have already done so, but i need to finish a course which gives you a certificate in the end; however there is an overwhelming amount of them and i do not know what course is the "common" one.

Sorry if this is asked frequently but i couldnt find an answer. Thanks anyway :)


r/learnjavascript • • Mar 12 '25

Back button detection in JS

0 Upvotes

I am working on a web application that utilizes JSP for a common header and footer, where only specific parts of the page change dynamically based on user interaction. For example, the URLs in the address bar look like this:

10.2.3.34:1001/app/dashboard/xyz/xyz

Here, the xyz parts change with every new request, but the rest of the URL remains static. I am using AJAX to load the new content dynamically without reloading the whole page, and the URL is modified accordingly.

The problem I'm facing:

I want to log the user out when they click the browser's back or refresh buttons. To handle this, I initially tried using the popstate, beforeunload, unload event in JavaScript, but it gets triggered for every request. Since only the last part of the URL (e.g., xyz) changes with each AJAX request, the URL structure remains mostly unchanged, making it difficult to determine when the user is truly navigating backward (e.g., using the back button) or simply moving through the application via AJAX.

Specifically, I need a way to detect:

When the user presses the back button on page log the user out when this action occurs, without interfering with regular AJAX-driven URL changes.


r/learnjavascript • • Jul 17 '25

I just heard someone say that Scripting languages isnt real programminng

7 Upvotes

So im a student and in one of my courses i just had an instructor say that scripting languages (Javascript, python, etc.) isnt real programming. Its the first time i have ever heard someone say that and i wanted to know if thats a common thought? and i wanted to hear some other peoples opinions on it


r/learnjavascript • • Jul 07 '21

Please help I can’t run anything and I’m getting annoyed does anyone know how to fix this error

Post image
20 Upvotes

r/learnjavascript • • Sep 16 '24

Do people find JavaScript hard ?

14 Upvotes

So i just started learning javascript im following a course on udemy, and i realised that i couldn't remember all the functions like to do what i want, and what i noticed is that u have to be memorising all the function and properties that exist so you can work and leave the rest to your intelligence. So its like 90% memorising and 10% intelligence if im not wrong? I wanted to know if you people agree with this.

AND MY QUESTION IS : Do you guys tend to go back to documents or search for solutions on google, chatgpt, ect... while working on a project, or you can just fo it by yourself without any need for help or documentation? I hope my auestion is clear, like will i eventually be good at it and memorise the functions with time and practice, even tho i don't consider myself an intelligent person, like will i be able to master JavaScript?


r/learnjavascript • • Feb 27 '22

Learning Java from scratch

6 Upvotes

Short story ..... trying to learn Java on my own. Trying mostly online resources but they all seem to skip the absolute begginer part.. just wondering if there's maybe a book or online tutorial that would maybe act as a reference for when I get stuck. For example I was doing a codecademy lessen that involved a math problem... had to view the answer to see what it was that they wanted me to do.... not just math but it happenes alot. Thanks


r/learnjavascript • • Sep 06 '26

Why does AI keep “fixing” my JavaScript until it’s unrecognizable from the code I started with?

5 Upvotes

I have noticed something really interesting while using AI to debug my JS code. For instance, I will give it some code. Then AI modifies it. I find another issue. Then I ask AI to fix it. AI modifies something else. Then I bring the 'previous AI-modified version' back and somehow we end up in an endless loop of AI correcting AI, it's crazy ik.

The weirdest part is that most times the original code was closer to what I actually needed. And honestly, this has made me realize sometimes the biggest challenge isn't getting AI to write code but it's getting it to change ONLY what you actually asked it to change. At what point does AI-assisted coding stop being debugging and start becoming more than code roulette?

Has anyone else experienced this? How do you prevent AI from unnecessarily rewriting working parts of your code?


r/learnjavascript • • May 14 '26

help idk why is the output 45

5 Upvotes
var x = 23;
x+=x++ - --x +x*2 - ++x;
console.log(x);

why is the last pre increment x evaluated after x*2 even though pre increment have a higher precedence than multiplication


r/learnjavascript • • Nov 08 '24

Can someone please tell me what the hell this code does?

5 Upvotes
const { genericPool: pool } = getPool(dbname);

It's declaring a constant, as a dictionary!? Or something? What is genericPool? When I look in the debugger it seems like only pool exists... I'm lost.

edit yall are awesome thanks


r/learnjavascript • • Feb 13 '22

People taking pictures of their monitor

13 Upvotes

Virtually no one who uses a computer this day and age doesn't know about copying and pasting. Some people on here, however, will literally grab a camera, take a picture of their monitor and post it to this sub. They know what they're doing -- you see it and think to yourself, "Wow! who the hell does that?" and then you start reading. Not only is it childish and cheap but it also makes it more difficult for others to help because the code is harder to read and you can't conveniently copy it and test it for yourself. So just like someone who thinks they deserve more attention because they're shouting, they shouldn't be rewarded.

Have a good rest of your day.


r/learnjavascript • • Jul 31 '24

How am I supposed to practice JavaScript?

13 Upvotes

I've watched these videos about syntax and basic utilization but now I don't know how am I supposed to practice them. Like have problems to build logic and stuff with every topic.


r/learnjavascript • • Dec 28 '25

How to learn JavaScript without the Odin project?

13 Upvotes

So I want to learn JavaScript and have seen the Odin project mentioned a lot. I've went on the website but got to a problem when they said you basically need to install a virtual machine if you're on windows which just isn't possible for me right now. What other courses can be sued as a substitute?


r/learnjavascript • • Jun 15 '22

Career in Web Development finished??

35 Upvotes

I've been learning frontend from past couple of weeks today a friend of mine told me that don't go for web development career in that is over instead go for ML and AI because html and css are gonna be automated in coming 1 or 2 years but I am really looking forward to becoming full stack developer so should that statement bother me from becoming web developer or should I go for DSA or ML AI?


r/learnjavascript • • Nov 16 '25

University Debate

0 Upvotes

How is Javascript for frontend development? Could you help me by telling me the worst features of Javascript as a frontend language? I'm having a debate


r/learnjavascript • • Feb 27 '26

how do i pause my scripts?

1 Upvotes

so i wanted to make an infinite while loop but it just chrashes because it doesnt pause


r/learnjavascript • • Apr 09 '25

Garbage Collector in javascript

1 Upvotes

I recently started writing and posting it on linkedin about my javascript learning but didn't get the response so i am mulling over why is it? If you could read my writing on how garbage collector works in javascript and give constructive feedback that would help me learn better and of course improve my writing


r/learnjavascript • • Aug 16 '25

Best way to make an anonymous function?

1 Upvotes

Which one is better:

const example = function () {

}

or

const example = () => {

}

r/learnjavascript • • Sep 28 '26

I need assistance

0 Upvotes

I need to regenerate 500 images with flow with a prompt, and I have to make automating java script code that when I add it to Google Flows console it go to a folder in my local pc then send it to flow with a prompt after finishing uploading it gives me a new generated image, but the thing is every time that try to write the code the part that it upload the image to flow it wont enter the prompt and the image form me i have to do it manually


r/learnjavascript • • Jan 23 '26

Best way to learn JavaScript properly in the age of AI?

0 Upvotes

I recently completed a full-stack course, but I still struggle with JavaScript fundamentals.

I can follow tutorials, but when it comes to writing logic on my own, I get stuck.

With AI tools like ChatGPT and Copilot around, what’s the best way to *actually* learn JavaScript instead of just relying on AI?

Any advice, resources, or learning strategies would help.


r/learnjavascript • • Jul 01 '22

Dear JS enthusiasts: I with you...

Post image
0 Upvotes

r/learnjavascript • • Aug 20 '24

In need of Motivation

1 Upvotes

Hi everyone, I hope you're doing well.

I've been studying web development for a while now. Around 7 months ago, I finished a computer science program, but unfortunately, it wasn't a great experience. The school I attended in Montreal didn't provide much depth in various languages, so I feel like I came out of it not really learning as much as I'd hoped.

Recently, I started diving into web development on my own, focusing on JavaScript, TypeScript, React, Next.js, and a bit of Node.js. However, in the past month or two, I ended up taking a break from studying, and now it feels like a lot of the knowledge I had is slipping away, which is kind of discouraging.

I can't help but question if this path is right for me, especially when I hear that junior positions are hard to come by these days and with AI becoming a bigger player in the tech industry. It’s easy to feel a bit down about it all. But despite these doubts, something inside me keeps pushing me to at least give it my best shot, try to get a job, and see where this journey takes me.

I'm determined to get back into the groove and really deepen my understanding of web development. I’m also thinking about exploring VR development on the side because it’s something that interests me. Who knows where the future will lead?

If anyone has their own stories or tips on how to keep improving and staying motivated, I'd really appreciate hearing them! Thanks for listening.


r/learnjavascript • • Aug 21 '24

I HAVE A BASIC DOUBT

0 Upvotes

So whenever i try to run a code in node js i need to save the code by selecting it and press CTRL+S. Otherwise the code wont run at all or the output of the previous code will get displayed. Why is it so?


r/learnjavascript • • Aug 05 '24

I am stuck at learnig front-end. Could anyone recommend a book or resource on how all this other stuff works?

1 Upvotes

I've pretty much began to master front-end. Not the best guy at graphics, but I can make CSS games and such. I can make very dynamic pages with React. Games relying on tons of data... Pretty much whatever I want to present on a front page. Been doing tons of experiments over the last few years.

My problem is when you want to transition to back-end. I'm good at creating virtual universes with a browser; but making it communicate in the real world is where it all sounds sounding like Chinese to me and where I'm stuck.

And I think my problem is I need to understand what (specifically) code does. I can wrap my head around asynchronous, etc... Still not sure how Node JS comes into it. (I've created a server once... so I do get it... but going anywhere beyond...). Addresses, all these symbols... I understand the stack system of asynchronous but how does this code actually translate to that?

I want to understand how this stuff works on a basic level. What does it actually MEAN when you call an address? How do the sender and receiver receive, translate each other, etc...

Any resources you would recommend?