Web Componentsأساسي

Création d'un composant compteur interactif

السيناريو

Contexte : Une application doit afficher un compteur simple pouvant être incrémenté par l'utilisateur. Le Problème : Aucun composant réutilisable n'existe pour cette fonctionnalité. Contraintes : Utiliser uniquement Custom Elements et JavaScript natif. Livrable attendu : Développer un composant <counter-widget> affichant un nombre et un bouton permettant l'incrémentation.

المهارات المستهدفة

webcomponentsjavascriptcustomelementsinteraction

حالات تطبيقية أخرى في ⁨Web Components⁩

عرض كل الحالات التطبيقية في ⁨Web Components⁩

أسئلة أصلية من تصميم CodeDuel. لا ترتبط CodeDuel بأي ناشر أو هيئة اعتماد مذكورة؛ أسماء الشهادات والعلامات التجارية مملوكة لأصحابها، ولا تُذكر إلا للإشارة إلى المجال الذي يغطيه الاختبار. الإبلاغ عن محتوى