coding with ☕️
2 subscribers
262 photos
14 videos
11 files
165 links
Anwendungsentwicklung
Download Telegram
card.append(img, title, price, desc);
coding with ☕️
card.append(img, title, price, desc);
Hamma tayyor elementlar (rasm, nom, narx, tavsif) kartaning ichiga qo‘shiladi.
box.appendChild(card);
coding with ☕️
box.appendChild(card);
Tayyor kartani HTML sahifasidagi .box divi ichiga joylashtiramiz. 🧠 Har bir mahsulot uchun alohida karta chiqariladi!
} catch (err) {
console.error("Error fetching products:", err);
}
coding with ☕️
} catch (err) { console.error("Error fetching products:", err); }
Agar yuqoridagi kodlarda xatolik yuz bersa (masalan, internet yo‘q bo‘lsa), bu joyda xatolik konsolga chiqariladi.
fetchProducts();
coding with ☕️
fetchProducts();
Yuqorida yozilgan funksiyani chaqiryapmiz.

Shunda mahsulotlar yuklanadi va ekranga chiqadi.
fetch('https://jsonplaceholder.typicode.com/posts')
.then(response => response.json())
.then(data => {
console.log('Postlar:', data);
})
.catch(error => {
console.error('Xatolik yuz berdi:', error);
});
Then, use the JavaScript built-in function JSON.parse() to convert the string into a JavaScript object:
coding with ☕️ pinned «Then, use the JavaScript built-in function JSON.parse() to convert the string into a JavaScript object:»
C is very powerful; it has been used to develop operating systems, databases, applications, etc.
The next lang is Node.js
"Think. Code. Solve."

"Born to Code."

"Coffee + Code = Life."

"Keep calm and code on."

"Trust the Process: Write Code."

"Infinite loops, infinite dreams."

"Making ideas alive through code."

"Less talk, more code."

"Silence means coding in progress."
"Passionate Coder."

"Creative Problem Solver."

"Code is my Voice."

"Dream in JavaScript."

"From Bugs to Masterpieces."
$ rm car.js
$ mkdir modules
console.log(path.resolve(__dirname, "templates", "index.html"));
If I talk about Node js, it is similar to JavaScript, but with back-end servers, you can also call it a JavaScript library.
Brauzer ichida setTimeout, fetch, Promise, async/await yordamida asinxron ishlar qilinadi.