--- id: bad87fee1348ce8acef08814 title: Warn Your Users of a Dangerous Action with btn-danger challengeType: 0 --- ## Description
Bootstrap comes with several pre-defined colors for buttons. The btn-danger class is the button color you'll use to notify users that the button performs a destructive action, such as deleting a cat photo. Create a button with the text "Delete" and give it the class btn-danger. Note that these buttons still need the btn and btn-block classes.
## Instructions
## Tests
```yml tests: - text: Create a new button element with the text "Delete". testString: assert(new RegExp("Delete","gi").test($("button").text()), 'Create a new button element with the text "Delete".'); - text: All of your Bootstrap buttons should have the btn and btn-block classes. testString: assert($("button.btn-block.btn").length > 2, 'All of your Bootstrap buttons should have the btn and btn-block classes.'); - text: Your new button should have the class btn-danger. testString: assert($("button").hasClass("btn-danger"), 'Your new button should have the class btn-danger.'); - text: Make sure all your button elements have a closing tag. 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 ```