You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
599 B

## What else ?
### The `else` keyword
It allows to execute alternative code if the condition do not match:
```js
if (isEnough) {
console.log('this is enough :)')
} else {
console.log('I want more !!')
}
```
it is like an `if` but you don't have a condition, just add a scope after `{}`
and write code !
### Instructions
You must check if `'George Clooney'` is included in the provided array `vips`
if he is, `console.log` the string `'What else ?'` otherwhise log
`'The only failure is not to try.'`
### Notions
- [includes](https://devdocs.io/javascript/global_objects/array/includes)