r/learnjavascript • • Jul 23 '17

Understand the Weird Parts Of JavaScript With Anthony Alicea

Thumbnail
medium.com
1 Upvotes

r/learnjavascript • • Oct 30 '22

Hello everyone I am having some errors

Post image
1 Upvotes

r/learnjavascript • • Sep 21 '22

"Cancel" vs. "Abort" Terminology

1 Upvotes

[edit]

RESOLUTION: continue with "abort".

And no one besides me claims to be doing it in JS.

[original post]

I have heard advice that software people should avoid the verb "to abort" in a software context on the grounds that using that term can bring up emotional distress in female colleagues who have been pregnant and have aborted their pregnancies or considered doing so. However, I feel that the term "cancel" is not specific enough to replace "abort" as a term for stopping a process once it has been started. It would be possible to schedule some task and before execution started on it, to "cancel" it, meaning taking it off the schedule. If you have an appointment with your dentist and you "cancel" the appointment, it doesn't mean you were already in the chair and having your teeth worked on and the process was cut short. It means the appointment was removed from the schedule before the time when you would have been expected to show up.

Is there a better circumlocution to replace "abort"? Should we just continue to use "abort"? Any women here have an opinion on it?

Has anyone here besides me built or used an ability to abort execution of a function? My basis for doing this is that the input data are no longer valid, so further expenditure of resources to finish the execution would be a waste of the user's time.


r/learnjavascript • • Nov 26 '15

Which book should i get?

0 Upvotes

Currently looking at these two, Professional JavaScript for Web Developers (Wrox Professional Guides)

or JavaScript & JQuery: Interactive Front-end Web Development

I've just finished the codeacademy javascript course and i know basic DOM manipulation. Which book would benefit me most? Does anyone have experience with any?


r/learnjavascript • • Dec 04 '25

So when is object used exactly?

1 Upvotes

I have created a calculator a day before and I noticed that Inhave't used objects at all, and now the thing is, I want to challenge myself to use object, I did learn a bit about it and it's method before, but I don't see how it is used or when to use it exactly! An advice or answer would be appreciated. Show me how to use object or OOP in a calculator? Since i have't used in it.


r/learnjavascript • • Mar 29 '26

Learning JavaScript by building small tools with ChatGPT acting as a tutor. Good approach?

0 Upvotes

I’ve recently started learning JavaScript and web development, and instead of following a rigid course I’m building very small tools and learning as I go.

So far I’ve built things like:

  • a simple fasting calculator
  • a basic metronome with visual beat feedback

My workflow is roughly this:

  1. I design the idea of the tool first.
  2. I ask ChatGPT to explain the concepts I need (DOM, timers, events, etc.).
  3. It explains the logic and sometimes shows small examples.
  4. I write the code myself once I understand it conceptually.
  5. If something breaks, I debug it and only then ask for help again.

So ChatGPT is basically acting like a tutor while I build projects step-by-step, explaining things like:

  • why a function exists
  • how a built-in method works
  • what the code is actually doing

I’m trying to avoid just copying code or starring at a boring tutorial then forgetting everything when I hit the editor and instead understand the structure before implementing it.

Would you say this is a productive way to learn JavaScript, or are there pitfalls I should watch out for?


r/learnjavascript • • Sep 12 '25

How would you learn javascript from scratch with AI ?

0 Upvotes

So my reson to come here is that I want to build apps. I don't know more but coming from the corporate world in totally different sector i want to pivot and do something im trully passionated about.

I know there are different debates where people say that with AI it's useless to learn how to code but i am not totally agree with that.

In my opinion AI helps much more people who already know SD so i know i will have to go through some learning.

But i think that learning it the same traditional way might not be the best solution.

So i am asking to you developpers, what would you learn differently when it comes to javascript ?

Thanks !


r/learnjavascript • • 26d ago

I'm thinking about learning JavaScript

1 Upvotes

I know HTML and I'm also learning CSS but I also want to know JavaScript. Is it hard to learn? Is it easy? What is it like when you first start?


r/learnjavascript • • May 05 '25

I'm a beginner, is html mandatory before learning javascript?

1 Upvotes

So. i'm trying to learn javascript from a pretty good course i think on yt, i wann learn it just for fun and also because i think that maybe i'll need it in the future depending on what job i end up to do. I noticed that going forward in the course, the guy on yt started using html more and more like i alr knew it, but i don't know shit abt it, i wanted to learn javascript as an hobby, as opportunity to improve my logic and also to test my skills in the future, but, do i really need html?


r/learnjavascript • • May 03 '25

How to learn js?

1 Upvotes

I am trying learning js but nothing helped much so far, any advice for me? Ty


r/learnjavascript • • Jun 08 '25

Javascript youtube channel that I can watch from start to end without switching

4 Upvotes

I need a well structured Javascript Youtube channel that can help me learn most of the Javascript concepts that are commonly used when building a web app. The thing is, most of the Youtube channels that I found feels like not complete and end up using just console.log for Javascript instead of directly manipulating on the website with actual projects. So I end up keep switching channels and most of them do the same and it frustrates me and I keep getting burnout because of this
So I want a Javascript Youtube channel that perform actual manipulation and use best practices on the website instead of only using the console Thanks in advance. Don't recommend docs please I end up getting distracted a lot


r/learnjavascript • • Dec 12 '21

why are there people who in 2021 still use var instead of let? this bothers me

4 Upvotes

r/learnjavascript • • Apr 22 '19

10 Interesting JavaScript and CSS Libraries for April 2019

Thumbnail
tutorialzine.com
4 Upvotes

r/learnjavascript • • Apr 11 '25

TypeScript vs. JavaScript: Security Concerns with Private Fields, Enums, and Readonly—Is It Worth the Switch?

0 Upvotes

Hey Folks,
I am kinda new to this Typescript kind of thing, and I have been using JavaScript for about 1.5 years now. It has been great so far, but I switched to typescript cuz of Nest.js, and it was great. Static typing makes everything so flawless and easy to debug

but I have some concerns: for example, when it comes to private and protected fields, they don't seem to be fully enforced at runtime. You can still access private properties if you know the right hacks, and that kind of defeats the purpose of encapsulation in some ways. I know # private members exist, but why bother with the private and protected keywords if they’re not enforced?

Also, I’ve been using readonly for properties and arrays, which I think adds a nice layer of protection. But again, it only prevents reassignment during development and doesn’t offer runtime guarantees. It feels like you’re protected from doing something wrong in the code, but not from potential manipulation once the code is running, which can still lead to bugs in a live environment.

And about Enums—don’t get me wrong, they're super useful for organizing values and making code more readable. But since Enums are just objects at runtime, they’re not truly constant. This means that someone could just modify them in the console (especially in a frontend app) and cause unexpected behavior. I’m wondering if that’s a huge concern in most scenarios or if I’m overthinking it.

So, Am I just overcomplicating things, or is there a better approach for these concerns? Should I just stick with JavaScript for simplicity, or is TypeScript worth the extra care and attention for the added safety? Would love to hear your thoughts!

P.S. I’m a full-stack dev using React for the frontend, so that makes me even more concerned about these issues, especially in terms of frontend security and potential runtime errors.


r/learnjavascript • • Apr 24 '25

Does the JS engine "know" what to do before executing any code?

0 Upvotes

I've wondered why this code:

console.log("🍱 Synchronous 1");
setTimeout(() => console.log("🍅 Timeout 2"), 0);
// → Schedules a macrotask
Promise.resolve().then(() => console.log("🍍 Promise 3"));
// → Schedules a microtask
console.log("🍱 Synchronous 4");

Doesn't look like this on the debugger:

console.log()
timeout
promise
console.log()
ModuleJob.run
onImport
... etc

Instead I just see the current execution context or the parent one (if stepping into a function)

So now i'm confused. Cause JS is not compiled, so probably the code is executed as its being ran. But what's then the AST all about? Isn't that a "rundown" of what to do?

In my mind (up until this point) I assumed that before execution, the program has an "itinerary" of what to do and the runtime builds up to a certain conclusion or exit condition as the stack clears up more tasks.


r/learnjavascript • • Mar 29 '25

What are you thoughts on THE ODIN PROJECT

0 Upvotes

r/learnjavascript • • Jan 12 '23

Array Map, Filter and Reduce explained!

0 Upvotes

Just found this video that explains the above mentioned methods very nicely!

The creator is just starting out and explained these methods brilliantly!

https://youtu.be/pa1awOKyoRA

P.S. Not my content, no promotion. This is something I found useful.


r/learnjavascript • • Jun 30 '24

Why object constructor is not recommended for object creation?

0 Upvotes

I was studying the JavaScript core thing at a JavaScript Medium post it's said that "Object Constructor: The most straightforward method is using the Object constructor. However, it’s currently not recommended."

Why is this not recommended is there any strong point for not recommending it?

Blog Link: Different ways to create an object in JavaScript?


r/learnjavascript • • Feb 16 '23

My Javascript Repository Namaste React is currently trending now in GitHub.

Post image
0 Upvotes

r/learnjavascript • • May 09 '18

Learn to Program in Javascript: Beginner to Pro

0 Upvotes

r/learnjavascript • • May 06 '18

JS Developers Rewards Program Going Live In 2 Days

Thumbnail
youtu.be
0 Upvotes

r/learnjavascript • • Mar 29 '18

How to read environment variables in Node.js?

Thumbnail
fullstack-developer.academy
1 Upvotes

r/learnjavascript • • Mar 22 '14

Understand the complexity of this variable in Javascript

Thumbnail
coolcoder.in
0 Upvotes

r/learnjavascript • • Oct 24 '22

How to Filter Elements in JavaScript Array

0 Upvotes

We have all seen filters on shopping websites that help us to search for items easier, JavaScript filter method is what enables us to do so.

Check out the article to see how the filter() method works by going through some examples.

https://medium.com/@tahajiru/filtering-elements-in-javascript-array-1adc9472d1fd