thedevs_js | Unsorted

Telegram-канал thedevs_js - JavaScript

5131

Part of @thedevs Rules: @rulesforthedevs Join other dev groups https://thedevs.network

Subscribe to a channel

JavaScript

I'm making it semi "responsive". it's designed for small laptops screen, Which looks so huge on my 4k.
So the changes are merely for font sizes.

Читать полностью…

JavaScript

Hi,
Anyone know how to inspect elements with zooming applied?
I want to change a website styles to look the same as it appear on 90%.
But inspecting only gives css values, not the actual visible sizes.

Читать полностью…

JavaScript

⚠️ ‎Thomas warned ‎Juber Shaikh [6954217310].
1/3: ‎[JavaScript] use @thehire for jobs
This warning expires on 2026-04-17

Читать полностью…

JavaScript

No need to make fetchWithAbort, just call normal fetch and pass signal

Читать полностью…

JavaScript

async function fetchWithAbort(url, signal) {
if (signal.aborted) {
throw new Error('Operation cancelled');
}

const controller = new AbortController();
const { signal: fetchSignal } = controller;

const timeout = setTimeout(() => controller.abort(), 10000); // Optional timeout

const onAbort = () => {
clearTimeout(timeout);
controller.abort();
};
signal.addEventListener('abort', onAbort);

try {
const response = await fetch(url, { signal: fetchSignal });
clearTimeout(timeout);
signal.removeEventListener('abort', onAbort);
return response;
} catch (err) {
clearTimeout(timeout);
signal.removeEventListener('abort', onAbort);
if (signal.aborted) {
throw new Error('Operation cancelled');
} else {
throw err;
}
}
}

(async () => {
const controller = new AbortController();
const signal = controller.signal;
setTimeout(() => controller.abort(), 2000);

try {
const res = await fetchWithAbort('https://api.example.com/data', signal);
console.log('Success:', await res.json());
} catch (err) {
console.error(err.message);
}
})();


like this

Читать полностью…

JavaScript

does any one know how to write cancellable function in javascript

Читать полностью…

JavaScript

its 170 not even 200

Читать полностью…

JavaScript

It’s an open group so enjoy yourself mate

Читать полностью…

JavaScript

he wants video creator in $2

Читать полностью…

JavaScript

I want some one who can create video of how to use a website its and instructions video steps to use an website with there own voice no ai even i will pay 200 INR I Want Raw Video With Clear Voice No Need For Any Editing If Anyone Interested DM me

Читать полностью…

JavaScript

I think you mean obfuscated

Читать полностью…

JavaScript

Do you mean .node? That's not encrypted bro

Читать полностью…

JavaScript

I need a help to decrypt node file.

Читать полностью…

JavaScript

As much as you can stretch it.

Читать полностью…

JavaScript

Burnouts is another word for laziness right?

Читать полностью…

JavaScript

Maybe use vh or vw values for the elements which you dont expect to change on zoom

Читать полностью…

JavaScript

please read the rules

Читать полностью…

JavaScript

There's gonna be youtube videos, articles, and AI will be good at explaining this

Читать полностью…

JavaScript

A bit too much maybe

Читать полностью…

JavaScript

Pass it into async operations

Читать полностью…

JavaScript

One day we might get match().

Читать полностью…

JavaScript

oh wait! I read it as $200 USD.... dang 200 Indian rupees?? 👀

Читать полностью…

JavaScript

It’s alarming what you see on here

Читать полностью…

JavaScript

lol... you're the first person I've heard recently saying they prefer human over AI labor 😅

Читать полностью…

JavaScript

what do you mean by that

Читать полностью…

JavaScript

It is node file extracted from exe.it is encrypted.i mean text is encrypted

Читать полностью…

JavaScript

I hope you accomplished your goals at the end, but now you know how elastic you are,

I believe, if you redo it again, you will hit a new endurance level.

Читать полностью…

JavaScript

offtopic but no. I used to think the same until I actually faced it. I worked for 14-18 hours per day, everyday for over 8 months, skipped meals, inadequate sleeps, no physical activity etc.

I was just focused on single project and outcomes where great but never perfect. And suddenly I lost interest in programming, I left the project and it took me over 1.5 month to finally get back to work. And the worst part is that nothing changed in that 1.5 month break. I was unable to overcome the bad habits that I developed.

I started doing random things that I hated doing earlier, started drawing, writing diary, etc. I don't know how it affected me so much and I couldn't even explain myself what has affected me, and trust me the inability to understand something is the worst thing that could happen to someone. It could make you change or even lose your ambitions.

Burnouts are real bad, idk what are the early signs and how to prevent it, but just try to stay healthy and not to burn yourself out.

Читать полностью…

JavaScript

I mean, you gotta increase your endurance.

Читать полностью…

JavaScript

Or over refactoring and creating utilities for imaginary situations.

Читать полностью…
Subscribe to a channel