r/JavaScriptTips • u/tutorialstonight • Feb 07 '21
r/JavaScriptTips • u/tutorialstonight • Jan 27 '21
JavaScript beginner project | To Do List App
r/JavaScriptTips • u/tutorialstonight • Nov 30 '20
Arrow function in JavaScript
r/JavaScriptTips • u/tutorialstonight • Nov 12 '20
Javascript Number: 8 properties and 12 methods š„
r/JavaScriptTips • u/tutorialstonight • Nov 03 '20
22 Javascript String Methods š„
r/JavaScriptTips • u/tutorialstonight • Oct 18 '20
Javascript loops: for loop, while loop and do...while loopš„š„ļø
r/JavaScriptTips • u/binantwi • May 27 '20
A Good JavaScript Online Course To Learn In The Summer?
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 • u/fullStackRyan • Apr 06 '20
How To Become A Software Engineer For Free
r/JavaScriptTips • u/Visible-Plankton1969 • Jan 31 '26
UX Intro for Devs
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 • u/paul_405 • Jan 16 '26
Lifehack concepts in JS
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 • u/ratheshprabakar • Nov 18 '25
Tip: Understanding JS memory management changed the way I code
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 • u/Parking_Cap2351 • Oct 09 '25
š” Small JavaScript Tip: The Subtle Difference Between sort() and sort(callback)
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 • u/LunarFlare_7 • Jun 27 '25
JavaScript .innerText not updating even though no errors (Rock Paper Scissors Game)
r/JavaScriptTips • u/[deleted] • Jun 13 '25
Create figma using AI
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 • u/Known-Form-1575 • May 21 '25
š JavaScript 2025: Exciting New Updates You Need To Know! š„
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 • u/Glum_Price7689 • May 03 '25
How can I make it find two letters in the word and replace with two other letters
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 • u/CodewithCodecoach • Apr 15 '25
š 5 Essential JavaScript String() Methods Every Developer Must Know!
galleryr/JavaScriptTips • u/No_Poetry9172 • Mar 31 '25
JavaScript
what will be the answer>?
**1.**console.log(10n+2);
**2.**console.log( !{} && someFunction() );
**3.**console.log( !-0 + !!Infinity + !null + !!undefined);
r/JavaScriptTips • u/Taste-Obvious • Mar 21 '25
Why Does JavaScript Return -0? A Quirky Math Surprise!
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 • u/Ill_Clerk3677 • Feb 11 '25
Understanding Nested Functions in JavaScript with a Fruit Juice Example
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 • u/Embarrassed_Bag_4657 • Jan 25 '25
Transition with text
Does anyone know how I can make the welcome to my text page dissapear behind the white/black box?
r/JavaScriptTips • u/Apart_Cherry_3837 • Jan 21 '25
Help Stop Someone Profiting from Free Community Work! u/keyframeeffects
reddit.comr/JavaScriptTips • u/keyframeeffects • Jan 21 '25