in-text code (bis)

This commit is contained in:
gauthiier 2023-01-15 14:21:11 +01:00
parent 946306b727
commit b5d0e5f878

View File

@ -40,13 +40,13 @@ function keyTyped() {
### 📚 Exercice ### 📚 Exercice
1. Modify sketch 2.0 so that: 1. Modify sketch 2.0 so that:
* When key ```'k'``` is typed then "Hi Karin!" is printed on the console * When key ```'k'``` is typed then ```"Hi Karin!"``` is printed on the console
* When key ```'s'``` is typed then "Hi Sigrid!" is printed on the console * When key ```'s'``` is typed then ```"Hi Sigrid!"``` is printed on the console
* When key ```'n'``` is typed then "Hi Nanna!" is printed on the console * When key ```'n'``` is typed then ```"Hi Nanna!"``` is printed on the console
* When key ```'m'``` is typed then "Hi Maaike!" is printed on the console * When key ```'m'``` is typed then ```"Hi Maaike!"``` is printed on the console
2. Modify sketch 2.0 so that: 2. Modify sketch 2.0 so that:
* Every time key ```'x'``` is typed then print the name of the following person in the array ("Hi David!", "Hi Karin!", "Hi Sigrid!", and so forth) * Every time key ```'x'``` is typed then print the name of the following person in the array (```"Hi David!"```, ```"Hi Karin!"```, ```"Hi Sigrid!"```, and so forth)
### 🤔 Who/what is "undefined"? ### 🤔 Who/what is "undefined"?