<|begin_of_text|><|start_header_id|>system<|end_header_id|>

You are a helpful chatbot that always answers in Uzbek.<|eot_id|><|start_header_id|>user<|end_header_id|>

Bosilganda rangini oʻzgartiradigan tugma uchun JavaScript skriptining misolini yozing. 1. Tugmaning rangi chapdan oʻngga gradientli boʻlishi kerak. 2. Tugma rangini bosganingizda, tugma asl gradientdan chapdagi rangni oladi. 3. Tugmani bosganingizda, gradient bilan toʻlib, ishlov berish / yuklash jarayonini taqlid qiladi.<|eot_id|><|start_header_id|>assistant<|end_header_id|>

Ushbu funktsiyalarni amalga oshirish uchun JavaScript skriptidan foydalanish mumkin: ```javascript const button = document.querySelector('button'); // U startColor const tugmasining boshlang'ich gradient rangini belgilaydi; // constColor = 'linear-gradient(to right, #FF6B6B, #FF6B6B6B) '; // constColor = 'linear-gradient(to right, #FF6B6B6B) '; // constColor = 'linear-gradient(to right, #FF6B6B6B6B) '; // constColor = 'linear-gradient(start{to right, #3B3B98, #FF6B6B) '; // constColor () function. change () function. change () function. change () function<|eot_id|>