--- id: bad87fee1348ce8acef08814 title: Advierte a tus usuarios de una acción peligrosa con btn-danger challengeType: 0 forumTopicId: 18375 dashedName: warn-your-users-of-a-dangerous-action-with-btn-danger --- # --description-- Bootstrap viene con varios colores predefinidos para botones. La clase `btn-danger` es el color del botón que usarás para notificar a los usuarios que el botón realiza una acción destructiva, como eliminar la foto de un gato. Crea un botón con el texto `Delete` y dale la clase `btn-danger`. Ten en cuenta que estos botones todavía necesitan las clases `btn` y `btn-block`. # --hints-- Debes crear un nuevo elemento `button` con el texto `Delete`. ```js assert(new RegExp('Delete', 'gi').test($('button').text())); ``` Todos tus botones de Bootstrap deben tener las clases `btn` y `btn-block`. ```js assert($('button.btn-block.btn').length > 2); ``` Tu nuevo botón debe tener la clase `btn-danger`. ```js assert($('button').hasClass('btn-danger')); ``` Todos tus elementos `button` deben tener etiquetas de cierre. ```js assert( code.match(/<\/button>/g) && code.match(/

Things cats love:

Top 3 things cats hate:

  1. flea treatment
  2. thunder
  3. other cats
``` # --solutions-- ```html

CatPhotoApp

Click here for cat photos.

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

Things cats love:

Top 3 things cats hate:

  1. flea treatment
  2. thunder
  3. other cats
```