r/JavaScriptTips • • Oct 04 '22

Duda hay alguna forma de hacer en javascript un codigo que saque numeros alzar y ordenar esos numeros alzar de mayor a menor la verdad me he rendido y solo se se puede usar un array y un ciclo fir con una funcion de numeros adjuntada al array pero no encuentro la forma de ordenarlas

0 Upvotes

Ayuda :(


r/JavaScriptTips • • Dec 18 '21

The Complete Full-Stack JavaScript Course!

Thumbnail
youtube.com
2 Upvotes

r/JavaScriptTips • • Aug 10 '21

JavaScript For Loop and While Loop

Thumbnail
youtube.com
2 Upvotes

r/JavaScriptTips • • Apr 07 '25

The Shocking GeeksforGeeks Ban on Google Search: What Happened and What It Means for Coders

Thumbnail
frontbackgeek.com
0 Upvotes

r/JavaScriptTips • • Jul 20 '24

Quick Quiz

Post image
6 Upvotes

What will be the output of the following JavaScript code?


r/JavaScriptTips • • Dec 03 '22

JavaScript Callback Functions

3 Upvotes

Despite not knowing what the callback function is, chances are that you already use it without even realizing it. Methods like .map(), .filter(), and .reduce() all make use of callback functions.

Although callbacks can be confusing, you still need to learn them thoroughly as they form a critical concept in JavaScript. You can’t get very far without knowing callbacks.

Check out this post to learn what callbacks are, why they’re important, and how to use them.


r/JavaScriptTips • • Sep 04 '24

I don’t get it

3 Upvotes

I’m learning software engineering and I really can’t grasp the concept of JavaScript, arrays, functions, expressions ect ect .. any tips on how to understand better?? The wording, the placement everything just feels like I’m guessing and then just copy and pasting the answers once I have too many failed attempts


r/JavaScriptTips • • Dec 19 '22

https://medium.com/geekculture/i-aced-most-javascript-tech-rounds-using-this-cheatsheet-so-that-you-dont-have-to-go-through-636d60a3d77b

Post image
0 Upvotes

r/JavaScriptTips • • Aug 19 '24

Build Animated Landing Page Design Using HTML CSS and JavaScript

3 Upvotes

r/JavaScriptTips • • Jan 21 '23

debugging this JavaScript code Good day everyone. I am currently learning JavaScript, I started 2 months ago. I humbly request your assistance in debugging the code below. I tried watching YouTube but I couldn't get any assistance. So the code is supposed to out BAART! Eat my shorts ! O'oh! Bu

Post image
3 Upvotes

r/JavaScriptTips • • Jul 08 '23

HELP WITH CODING ROOMS

Thumbnail
gallery
3 Upvotes

I’m doing the coding rooms free course and I’m stuck on this assignment. Instructions in the picture. Any help is appreciated


r/JavaScriptTips • • Jan 05 '24

Java code help

Thumbnail
gallery
3 Upvotes

Im already out of ideas to code this kind of question. Im not advanced in programming java yet. Ive only learned: print, method, string/substring, while/dowhile/for, switch, if/ifelse/else, public static void/int/double/char


r/JavaScriptTips • • Oct 19 '24

New JavaScript Article: Mastering Design Patterns in JavaScript — Part 2: The Factory Pattern

3 Upvotes

Hey fellow devs! 👋 I just published the second part of my series on JavaScript Design Patterns, and this time, we’re covering the Factory Pattern 🏭. If you’ve ever struggled with object creation and want to make your code more maintainable and scalable, this article is for you.

Here’s what you can expect:

  • Simplified object creation 🎯

  • Flexibility and ease of maintenance 🛠️

  • Real-world examples like payment systems and notifications 🔔

Check it out and let me know your thoughts!
🔗 https://codexstoney.medium.com/6a0c96295c01?source=friends_link&sk=9183ec820ab40c936ebe525f8f2ac738

Looking forward to hearing your feedback! 🙌

JavaScript #WebDevelopment #FactoryPattern #Programming #DesignPatterns


r/JavaScriptTips • • Apr 09 '21

Im so fuckin confused while learning front end development!!!!!!!!!!!!

3 Upvotes

guys, its been a while now since i began learning frontend dev stuff, and im currently in learning javascript , i understood the basic concepts (functions,variables,scope,loops,closures,constructors and factory functions,prototype,arrays and there methods,objects,class and class inheritance,currying ,hoisting,module pattern,modules) and now im trying to put all of that into practice by doing some codewars.com challenges, but my problem is that there are still alot of things that i 'think' i still should turn back to understand alot of other advanced things, and whenever i try to understand one of those things i find my self diving into other concepts and those other concepts lead me to other ones and im just stuck. I know that i will always be learning new things along the way , but should it really be that way or i can build things just knowing the basic stuff i mentionned before and just learn the other concepts occationally when i need them. Im so confused and starting to lose it ,HELP PLEASE!!!!


r/JavaScriptTips • • Oct 28 '20

Learn javascript function 🔥

Thumbnail
gallery
3 Upvotes

r/JavaScriptTips • • Jun 27 '20

Solid learning Advice: How to learn JavaScript By Derek Sivers (Thank you)

3 Upvotes

How to learn JavaScript By Derek Sivers (Thank you)

"Since I’ve mentioned that I recently learned JavaScript, people have asked me how and what I recommend. So here’s my experience and best advice for 2020."

Excellent learning tips. Step by step advice.

  • First step: Learn plain JavaScript

First, it’s important to learn plain JavaScript.

  • How to begin

Don’t just learn from little bits of tutorials, tips, or tricks online. Instead, you want a real foundation and solid understanding.

Start with the book: “Head First JavaScript Programming”.

Do Free Code Camp

  • Make it stick

Write down every new thing you learn, ideally into a flashcard program.

  • Reinforce it

quickly read through a few more books like these:

These books will go faster, now that you’re fluent.

  • Avoid the shortcuts

Do it the hard way. Solve everything yourself with plain JavaScript. It’s the best way to learn.

  • What next? If you had a web app in mind, start building it now. (OK, you can use shortcuts.)


r/JavaScriptTips • • May 19 '25

JavaScript security best practices guide for developers

3 Upvotes

Hi all,

I'm Ahmad from Corgea. We've recently put together a JavaScript security best practices guide for developers:

https://hub.corgea.com/articles/javascript-security-best-practices

We cover common vulnerabilities like XSS, CSRF, IDOR, as well as best practices for secure DOM manipulation, API protection, and safe dependency management. While we can't go into every detail, we've tried to cover a wide range of topics and gotcha's that are typically missed.

We've built a scanner that can find vulnerabilities in Javascript apps, and decided to focus on key blind-spots we've been seeing.

I'd love to get feedback from the community. Is there something else you'd include in the article? What's best practice that you've followed?

Thanks!

PS: We're also heavy users of Javascript, jQuery, Next.js, and TypeScript ourselves ❤️


r/JavaScriptTips • • Sep 05 '24

Why does this return false ?

Post image
7 Upvotes

Why does line 1121 return false??? Doesn't make sense at all . Confused !!!


r/JavaScriptTips • • Nov 27 '25

Shai-Hulud 2.0 npm worm

Post image
17 Upvotes

New wave of npm supply chain attack launched November 21. Moved from postinstall to preinstall, adds self-healing via GitHub search, and includes destructive fallback that wipes home directories if exfiltration fails.

Still spreading, new infections every 30-40 minutes.

Pin dependencies to pre-Nov 21 versions, scan for setup_bun.js/bun_environment.js/verify.js, rotate NPM tokens and GitHub credentials, check for rogue self-hosted runners.


r/JavaScriptTips • • Jan 16 '25

Yes/No Flip Switch Toggle Design with HTML & CSS

18 Upvotes

r/JavaScriptTips • • Apr 07 '25

Bringing Animations to Life: Interactive dotLottie with JavaScript - Event

Thumbnail
youtube.com
0 Upvotes

r/JavaScriptTips • • Jul 17 '25

How to read the value of an input without pressing Enter to validate?

0 Upvotes

My question is; in this code, to get the green color I have to type the same thing as work[x] and press Enter, but how can I get the red color without needing to press Enter?

if(text.value === work[x]){

text.style.backgroundColor = "red";

x++;

}


r/JavaScriptTips • • Jun 23 '25

Error con animaciones de Threes

0 Upvotes

Estoy haciendo un juego con javascript usando Threes pero llevo ya un rato con eso y muestra el error, ya tengo las animaciones en fbx pero sigue molestando


r/JavaScriptTips • • Aug 02 '25

Thank you so much for your support ♥️

Thumbnail gallery
0 Upvotes