Migrate docs from the other repo
This commit is contained in:
38
docs/reference/js/lessons/show-string/challenges.md
Normal file
38
docs/reference/js/lessons/show-string/challenges.md
Normal file
@ -0,0 +1,38 @@
|
||||
# show string challenges
|
||||
|
||||
My script. #docs
|
||||
|
||||
**Challenge 0**
|
||||
|
||||
Welcome! This [guided tutorial](/microbit/pxjkww) introduces the basic show string method on the micro:bit.
|
||||
|
||||
Let's show the string 'Hello' on the LED screen. The string will scroll one character at a time from left to right.
|
||||
|
||||
```
|
||||
basic.showString("Hello ", 150)
|
||||
```
|
||||
|
||||
**Challenge 1**
|
||||
|
||||
Now, let's show the string 'World' on the LED screen.
|
||||
|
||||
```
|
||||
basic.showString("Hello ", 150)
|
||||
basic.showString("World", 150) // ***
|
||||
```
|
||||
|
||||
**Challenge 2**
|
||||
|
||||
Let's display another string to introduce yourself!
|
||||
|
||||
After 'Hello World' we want to display the string 'My name is '.
|
||||
|
||||
```
|
||||
basic.showString("Hello World", 150)
|
||||
basic.showString("Good Night World ", 150) // ***
|
||||
```
|
||||
|
||||
**Challenge 3**
|
||||
|
||||
Add Micro's response to Good Night World!
|
||||
|
Reference in New Issue
Block a user