in-text code (bis)
This commit is contained in:
parent
946306b727
commit
b5d0e5f878
@ -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"?
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user