Похожие чаты

If a number is decreased eg x.length. I want to

run a code every time it goes down, how can I do it?

let limit = document.querySelectorAll(".soups").length;
if(limit-1) {
console.log("number of limit dropped by 1");
}

2 ответов

2 просмотра

Well first you have to store the previous limit

kinda XY. do you have code that runs that is in charge of decreasing the limit?

Похожие вопросы

Обсуждают сегодня

De "halving" (of "halvering" in het Nederlands) is een belangrijk onderdeel van het mechanisme van Bitcoin en beïnvloedt hoe nieuwe bitcoins worden gecreëerd en in omloop gebr...
MP
15
I received refund waiver and token sale agreement accepted. Does this mean I already bought??
Anas
22
Who knows when the next halving will occur ?
Furst
26
Great, What is Bitcoin halving?
🅢ⓐ🅢ⓔⓝ 🅓ⓘ ⓢⓗ
25
сурсы: import std/asyncdispatch, std/httpclient, std/json, std/sequtils, std/strutils, std/unicode, std/unidecode, std/uri, uuid4, regex const GPT4_API...
Qtless Qtless
4
Market gir kyu nahi raha h??
Priyesh
37
А ещё docker можно к ассемблеру прикрутить. В целом, системы сборки это настолько несвязанная вещь... Это оффтоп, можно сказать, во всех чатах. Это просто проект, который помо...
КТ315
22
Раз пошла тема про XML... Delphi XE 10.4.2(но это не важно), XML Data Binding Несколько XSD. В основном содержатся include на расширения. Несколько Namespace, это важно. Бин...
Alexey Gavrilov
4
Кто-нибудь может проверить на 11.3 и более ранних версиях, последнее число в трех нижних строках одно и тоже или нет? var Dict: TDictionary<Integer, string>; i, j: Intege...
Boris N (MBo)
6
https://bitcoincashresearch.org/t/wallet-connect-v2-support-for-bitcoincash/1100/6 OK, I found this which is at the far technical side of things. Is there a 'for dummies' int...
bch_gareth
11
Карта сайта