pxt-calliope/olddocs/js/lessons/show-string/challenges.md

39 lines
762 B
Markdown
Raw Normal View History

2016-03-26 00:47:20 +01:00
# show string challenges
My script. #docs
**Challenge 0**
2016-04-13 17:27:45 +02:00
Welcome! This [guided tutorial](/pxjkww) introduces the basic show string method on the micro:bit.
2016-03-26 00:47:20 +01:00
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!