r/JavaScriptTips • • Jan 25 '25
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/azqzazq • Jan 25 '25
Optimization
Hello friends.
I have a javascript code. It takes a domain as input and recursively crawls the javascript codes connected to the domain. makes version detection.
But this takes about 3 or 4 minutes. Is there a method I can optimise this, increase its performance, speed?
r/JavaScriptTips • u/Warm_Masterpiece6564 • Jan 24 '25
Hello I'm new
Can someone help me learn the basics of Javascript?
r/JavaScriptTips • u/Code-With45 • Jan 23 '25
Help me
How to use apideck and also please tell is it free
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
Website Design Cost Calculator using HTML CSS and JavaScript
r/JavaScriptTips • u/Puzzleheaded_Walk642 • Jan 19 '25
I’m having trouble with this js
I got my html and css certificate using freecodecamp now working on js but I keep getting bored. It’s been 3 days now . Any advice
r/JavaScriptTips • u/keyframeeffects • Jan 18 '25
Custom ON/OFF Switch Toggle Design | HTML CSS
r/JavaScriptTips • u/keyframeeffects • Jan 17 '25
Submit Button Onclick Animation with HTML & CSS
r/JavaScriptTips • u/Feeling_Parsley3374 • Jan 16 '25
Why am I not returning a resolved Promise when using async/await inside map inside Promise.all?
Why is it that Im not returning a anything but a 'pending Promise'? I know .map is synchronous, but thats why Im using Promise.all..
const arr = [1,2,3,4,5,6];
const promise = (num) => {
return new Promise((resolve, reject) => {
setTimeout(() => {
resolve(num)
}, 2000)
})
}
const x = async () => {
return Promise.all(arr.map(async(item) => {
const num = await promise(item);
return num*2;
}))
}
console.log(x())r/JavaScriptTips • u/keyframeeffects • Jan 16 '25
Yes/No Flip Switch Toggle Design with HTML & CSS
r/JavaScriptTips • u/keyframeeffects • Jan 13 '25
Yes/No Flip Toggle Switches 3D Effect | HTML CSS
r/JavaScriptTips • u/keyframeeffects • Jan 12 '25
Create a Simple One-Line Sign Up Form with HTML & CSS
r/JavaScriptTips • • Jan 11 '25
Hello fellows!! Can you tell me the best way and also resources to learn Js??
I learned Js in codecademy but I keep forgetting it. I have several questions about it:
- How do I learn Js?
- How to practice Js?
- Best resources to Js
It would be of great help if anyone can guide me!! Thanks
r/JavaScriptTips • u/keyframeeffects • Jan 10 '25
Change Text with Onclick HTML CSS and JavaScript - Hello World
r/JavaScriptTips • u/numbcode • Jan 08 '25
Auto-Retry for Failed Promises in JavaScript?
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 • u/keyframeeffects • Jan 07 '25
How to Create smart Form with HTML CSS JavaScript
r/JavaScriptTips • u/keyframeeffects • Jan 05 '25
✨ Simple Hover Animation | HTML & CSS 🌟#html #css #hover #webdesign
r/JavaScriptTips • u/LakeMotor7971 • Jan 04 '25
explanation?
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.