r/JavaScriptTips • • Feb 07 '21

JavaScript - Move up, down and sideways in DOM treešŸ”„

Thumbnail
tutorialstonight.com
5 Upvotes

r/JavaScriptTips • • Jan 27 '21

JavaScript beginner project | To Do List App

Thumbnail
tutorialstonight.com
5 Upvotes

r/JavaScriptTips • • Nov 30 '20

Arrow function in JavaScript

Thumbnail
tutorialstonight.com
5 Upvotes

r/JavaScriptTips • • Nov 12 '20

Javascript Number: 8 properties and 12 methods šŸ”„

Thumbnail
gallery
5 Upvotes

r/JavaScriptTips • • Nov 03 '20

22 Javascript String Methods šŸ”„

Thumbnail
gallery
5 Upvotes

r/JavaScriptTips • • Oct 18 '20

Javascript loops: for loop, while loop and do...while loopšŸ”„šŸ–„ļø

Thumbnail
gallery
5 Upvotes

r/JavaScriptTips • • May 27 '20

A Good JavaScript Online Course To Learn In The Summer?

5 Upvotes

So I study programming languages from professional programmers through some program that is paid by the government(right now I mainly know python and c but next year I will learn c++ too)

but I want to learn even more so I chose to learn javascript with my friend during the summer(and of course continue to learn it after it). so anyway I was wondering if someone has any good courses to recommend on? I know there are a lot of them out there but I wanna make sure we learn from something good and not learn as good as we can. so if anyone has any good courses to recommend on it will be really nice :) both I and my friend are not familiar with javascript but we have knowledge of other subjects and languages.


r/JavaScriptTips • • Apr 06 '20

How To Become A Software Engineer For Free

Thumbnail
youtube.com
5 Upvotes

r/JavaScriptTips • • Jan 31 '26

UX Intro for Devs

4 Upvotes

Hi everyone,

I’m a UX preparing a short introductory UX session for a group of full‑stack developer students (HTML/CSS/JS, React, Node, Mongo, a bit of WordPress, Git, etc.). I will give them just a few hours of UX to help them in real projects and jobs, not turn them into designers.

So, I'm curious, for those of you who are developers:

  • If you only had 2–4 hours of UX training, what would youĀ actuallyĀ have wanted to learn?

Thank's!


r/JavaScriptTips • • Jan 16 '26

Lifehack concepts in JS

4 Upvotes

Hey! Have you ever learned a concept (or some) in JavaScript or Vue that made the whole its picture clearer to you, explained many things about the language and just advanced you? Like a 'wish-I-learned-that-sooner' thing!

There are many more wonderful things like template literals or classList I think. And I remember that when I was much younger, I had fun with random scenarios based on Math.random()


r/JavaScriptTips • • Nov 18 '25

Tip: Understanding JS memory management changed the way I code

4 Upvotes

Quick tip for anyone working with JavaScript (frontend or Node):
Most of us think JS doesn’t handle memory well. I did too — until I learned how it actually manages memory.

Key takeaways:

  • How stack vs heap works

  • What reachability means

  • Why the Mark-and-Sweep algorithm matters

  • Why circular refs don’t necessarily cause leaks

  • Common patterns that cause real leaks (timers, event listeners, global refs)

If you’d like the full breakdown with examples and explanations in plain English:
https://medium.com/@ratheshprabakar/i-was-completely-wrong-about-javascript-memory-management-until-i-learned-this-8e3cae6983b8


r/JavaScriptTips • • Oct 09 '25

šŸ’” Small JavaScript Tip: The Subtle Difference Between sort() and sort(callback)

4 Upvotes

Ever used .sort() without a callback and thought it ā€œjust worksā€?

Well… sometimes it does. Sometimes it doesn’t. šŸ˜…

Let’s look at this šŸ‘‡

šŸ’¬ Key takeaway:
sort() without a callback converts items to strings and compares their Unicode order.

To sort objects properly, always pass a comparator.

Next time you see .sort(), ask yourself —

šŸ‘‰ ā€œIs JavaScript sorting what I think it’s sorting?ā€

hashtag#JavaScript hashtag#WebDevelopment hashtag#CodingTips hashtag#Frontend hashtag#TypeScript hashtag#WebTechJournals hashtag#PublicisSapient hashtag#PublicisGroupe


r/JavaScriptTips • • Jun 27 '25

JavaScript .innerText not updating even though no errors (Rock Paper Scissors Game)

Post image
4 Upvotes

r/JavaScriptTips • • Jun 13 '25

Create figma using AI

4 Upvotes

Hi everyone, I'm looking an AI tool design and give me a website UI for my photo and videography studio Website. Please let me know any you any a tool for that


r/JavaScriptTips • • May 21 '25

šŸš€ JavaScript 2025: Exciting New Updates You Need To Know! šŸ”„

Thumbnail
medium.com
4 Upvotes

Hey fellow devs! šŸ‘‹

I just published a blog covering the latest and upcoming features in JavaScript 2025 that every developer should keep an eye on. From syntax improvements to runtime enhancements, it's an exciting time for JS enthusiasts!

šŸ” Here's what you'll find in the article:

  • New language features and proposals

  • Performance improvements

  • Evolving ecosystem trends

  • Practical code examples

Whether you're a frontend wizard, a backend guru, or just JS-curious, I’d love to hear your thoughts!

šŸ‘‰ Read the blog here

Feedback, questions, or discussions are more than welcome. Let’s talk JavaScript! šŸ’¬


r/JavaScriptTips • • May 03 '25

How can I make it find two letters in the word and replace with two other letters

Post image
4 Upvotes

I'm noob in programming, but I need it for my romanization project, and that work good with one letter changing, but I need to change firstly the "жё - žo", and after that "ж - ž" Please help, if you can


r/JavaScriptTips • • Apr 15 '25

šŸš€ 5 Essential JavaScript String() Methods Every Developer Must Know!

Thumbnail gallery
4 Upvotes

r/JavaScriptTips • • Mar 31 '25

JavaScript

4 Upvotes

what will be the answer>?

**1.**console.log(10n+2);

**2.**console.log( !{} && someFunction() );

**3.**console.log( !-0 + !!Infinity + !null + !!undefined);


r/JavaScriptTips • • Mar 21 '25

Why Does JavaScript Return -0? A Quirky Math Surprise!

4 Upvotes

Ever noticed this in JavaScript?

console.log(-50 * 0); // Output: -0

At first glance, it seems odd—shouldn't -0 just be 0? But JavaScript (and many other languages following IEEE 754 floating-point arithmetic) distinguishes between 0 and -0.

Why does this happen?

Negative numbers retain their sign even when multiplied by 0.

IEEE 754 representation allows -0 to exist separately from 0.

While -0 === 0 is true, certain operations like 1 / -0 result in -Infinity.

It's one of those quirks that rarely matters but is fun to know!

Have you encountered a scenario where -0 caused unexpected behavior?


r/JavaScriptTips • • Feb 11 '25

Understanding Nested Functions in JavaScript with a Fruit Juice Example

4 Upvotes

I've been playing around with nested functions in JavaScript and wanted to share an example to explain how data flows between functions. Here's a simple scenario involving aĀ fruitProcessorĀ function that uses another function,Ā cutFruitPieces, to first cut fruits into pieces before making juice.

Here's the code for theĀ cutFruitPiecesĀ function that simply multiplies the number of fruits by 4, assuming it cuts each fruit into 4 pieces:

javascriptCopyEditfunction cutFruitPieces(fruit) {
  return fruit * 4;
}

Now, let's look at theĀ fruitProcessorĀ function. It receives a number of apples and oranges, usesĀ cutFruitPiecesĀ to cut them into pieces, and then creates a juice string:

javascriptCopyEditfunction fruitProcessor(apples, oranges) {
  const applesPieces = cutFruitPieces(apples);
  const orangesPieces = cutFruitPieces(oranges);
  const juice = `Juice with ${applesPieces} apple pieces and ${orangesPieces} orange pieces.`;
  return juice;
}

When you callĀ fruitProcessor(2,3), here's what happens:

  • fruitProcessorĀ is called with 2 apples and 3 oranges.

  • InsideĀ fruitProcessor,Ā cutFruitPiecesĀ is called for both apples and oranges, turning them into 8 apple pieces and 12 orange pieces, respectively.

  • It then returns "Juice with 8 apple pieces and 12 orange pieces."

To see this in action, you can simply log the result to the console:

javascriptCopyEditconsole.log(fruitProcessor(2,3));

This outputs: "Juice with 8 apple pieces and 12 orange pieces."

Discussion:Ā This example demonstrates how you can call one function from inside another to manipulate data before further processing. One might ask why not just multiply the input values by 4 directly withinĀ fruitProcessor? Well, using a separate function likeĀ cutFruitPiecesĀ can be helpful for keeping your code modular and easier to manage, especially when the logic for cutting fruit becomes more complex.


r/JavaScriptTips • • Jan 25 '25

Transition with text

4 Upvotes

Does anyone know how I can make the welcome to my text page dissapear behind the white/black box?


r/JavaScriptTips • • Jan 21 '25

Help Stop Someone Profiting from Free Community Work! u/keyframeeffects

Thumbnail reddit.com
4 Upvotes

r/JavaScriptTips • • Jan 21 '25

Website Design Cost Calculator using HTML CSS and JavaScript

4 Upvotes

r/JavaScriptTips • • Jan 17 '25

Help please

Post image
4 Upvotes