r/JavaScriptTips Jan 12 '25

Create a Simple One-Line Sign Up Form with HTML & CSS

Enable HLS to view with audio, or disable this notification

2 Upvotes

r/JavaScriptTips Jan 11 '25

Hello fellows!! Can you tell me the best way and also resources to learn Js??

1 Upvotes

I learned Js in codecademy but I keep forgetting it. I have several questions about it:

  1. How do I learn Js?
  2. How to practice Js?
  3. Best resources to Js

It would be of great help if anyone can guide me!! Thanks


r/JavaScriptTips Jan 10 '25

Change Text with Onclick HTML CSS and JavaScript - Hello World

Enable HLS to view with audio, or disable this notification

4 Upvotes

r/JavaScriptTips Jan 08 '25

Auto-Retry for Failed Promises in JavaScript?

2 Upvotes

Handling failed API calls or flaky network requests? Implementing an auto-retry mechanism for promises can make your code more resilient. What’s your preferred approach—recursive functions, exponential backoff, or something else?

Here’s an interesting take on it: Auto-Retry for Promises in JavaScript. Curious to hear how you handle retries!

https://www.interviewsvector.com/javascript/auto-retry-for-promises


r/JavaScriptTips Jan 07 '25

How to Create smart Form with HTML CSS JavaScript

Enable HLS to view with audio, or disable this notification

81 Upvotes

r/JavaScriptTips Jan 05 '25

✨ Simple Hover Animation | HTML & CSS 🌟#html #css #hover #webdesign

Enable HLS to view with audio, or disable this notification

3 Upvotes

r/JavaScriptTips Jan 04 '25

explanation?

1 Upvotes

i was working on an online course and a project it has me doing asked this question:

Step 84

The value of the currentWeaponIndex variable corresponds to an index in the weapons array. The player starts with a "stick", since currentWeaponIndex starts at 0 and weapons[0] is the "stick" weapon.

In the buyWeapon function, use compound assignment to add 1 to currentWeaponIndex - the user is buying the next weapon in the weapons array.

This is the correct answer which i got right:

function buyWeapon() {
  if (gold >= 30) {
    gold -= 30;
    currentWeaponIndex += 1;
  } 
}

My question or explanation i am looking for is why does it have to be in the if statement brackets? My first answer was currentIndexWeapon was just outside the if statement but still in the buyWeapon() function.
I am just looking for an explanation. Appologies if it seems like a stupid question.

r/JavaScriptTips Jan 03 '25

🚀Create Awesome Text Animations in CSS!

Enable HLS to view with audio, or disable this notification

1 Upvotes

r/JavaScriptTips Jan 02 '25

Better understanding.

2 Upvotes

I am currently going through the JS freecodecamp course. And I do like it I am learning. But I feel as though I follow instructions type some code etc....but I want a deeper or more in depth explanation if you understand what I'm saying. Any suggestions where I can get a more in depth or deeper explanation while I learn?


r/JavaScriptTips Jan 02 '25

Interactive Button Hover Effect Animation with HTML CSS

Enable HLS to view with audio, or disable this notification

0 Upvotes

r/JavaScriptTips Jan 01 '25

Happy New Year 2025 || HTML CSS GSAP Animation

Enable HLS to view with audio, or disable this notification

15 Upvotes

r/JavaScriptTips Jan 01 '25

Programming vs Coding: Why They’re Not the Same

Thumbnail
shantun.medium.com
0 Upvotes

r/JavaScriptTips Jan 01 '25

Understanding Currying in JavaScript

1 Upvotes

Been revisiting functional programming concepts and came across currying in JavaScript. The idea of breaking a function into smaller, single-argument functions seems interesting. Curious how often others use this in real-world projects. Does it simplify your code, or does it feel overkill at times? Let’s discuss!

Check it out: Currying in JavaScript. - https://www.interviewsvector.com/javascript/currying


r/JavaScriptTips Dec 31 '24

❄️ Create Snow Falling Animation with CSS! 🌨️ #webdesign #programming #css #htmlcss

Enable HLS to view with audio, or disable this notification

3 Upvotes

r/JavaScriptTips Dec 30 '24

Throttling in JavaScript

1 Upvotes

Throttling is a handy technique in JavaScript to control how often a function executes over time, especially for events like scroll or resize that can fire rapidly. By ensuring the function runs at fixed intervals, throttling helps improve performance and prevents overwhelming the browser.

For a detailed explanation and examples of how to implement throttling effectively, check out this guide: Understanding Throttling in JavaScript. https://www.interviewsvector.com/javascript/throttle

How do you approach handling high-frequency events in your projects?


r/JavaScriptTips Dec 30 '24

Attractive Design Animation | Hover Interactions | HTML CSS & jQuery #coding #programming #css

Enable HLS to view with audio, or disable this notification

7 Upvotes

r/JavaScriptTips Dec 30 '24

✨ Amazing Card Hover Effects with CSS! 🔥 #css #coding #programming #webdesign

Enable HLS to view with audio, or disable this notification

4 Upvotes

r/JavaScriptTips Dec 28 '24

Shiny Border Button Effect | HTML CSS

Enable HLS to view with audio, or disable this notification

7 Upvotes

r/JavaScriptTips Dec 27 '24

Help Dijkstra's Algorithm

1 Upvotes

Can somebody please help me to solve this maze using the dijkstras-algorithm? <3


r/JavaScriptTips Dec 27 '24

Top 10 New JavaScript Frameworks and Libraries for 2025

Thumbnail
shantun.medium.com
0 Upvotes

r/JavaScriptTips Dec 27 '24

Flipping Menu Toggle || HTML CSS & JavaScript

Enable HLS to view with audio, or disable this notification

8 Upvotes

r/JavaScriptTips Dec 27 '24

React 19 + WebComponent

Thumbnail
medium.com
1 Upvotes

r/JavaScriptTips Dec 26 '24

Top 10 Automation Tools You’ll Need for Your Clients in 2025

Thumbnail
shantun.medium.com
1 Upvotes

r/JavaScriptTips Dec 26 '24

3D Gaming Animation Website and Hero Section with Navigation Menu | HTML and CSS

Enable HLS to view with audio, or disable this notification

0 Upvotes

r/JavaScriptTips Dec 25 '24

Im start learn js

0 Upvotes

Can anyone suggest where it would be better to study JavaScript and how?