--- id: bad87fee1348ce8acef08814 title: Warn Your Users of a Dangerous Action with btn-danger challengeType: 0 videoUrl: '' localeTitle: تحذير مستخدمي موقعك من عمل خطير مع خطر btn --- ## Description
يأتي Bootstrap مع العديد من الألوان المحددة مسبقًا للأزرار. فئة btn-danger هي لون الزر الذي ستستخدمه لإعلام المستخدمين بأن الزر يقوم بإجراء مدمر ، مثل حذف صورة قطة. إنشاء زر مع النص "حذف" وإعطائها فئة btn-danger . لاحظ أن هذه الأزرار لا تزال بحاجة إلى فئات btn و btn-block .
## Instructions undefined ## Tests
```yml tests: - text: إنشاء عنصر button جديد مع النص "حذف". testString: 'assert(new RegExp("Delete","gi").test($("button").text()), "Create a new button element with the text "Delete".");' - text: '' testString: 'assert($("button.btn-block.btn").length > 2, "All of your Bootstrap buttons should have the btn and btn-block classes.");' - text: يجب أن يكون لديك الزر الجديد فئة btn-danger . testString: 'assert($("button").hasClass("btn-danger"), "Your new button should have the class btn-danger.");' - text: تأكد من أن جميع عناصر button لديك بها علامة إغلاق. testString: 'assert(code.match(/<\/button>/g) && code.match(/
## Challenge Seed
```html

CatPhotoApp

Click here for cat photos.

A cute orange cat lying on its back. Three kittens running towards the camera.

Things cats love:

  • cat nip
  • laser pointers
  • lasagna

Top 3 things cats hate:

  1. flea treatment
  2. thunder
  3. other cats
```
## Solution
```js // solution required ```