Answering Machine
Get started with JavaScript Blocks with this 'hello, world!' program!
Einführung
First project using the micro:bit and the JavaScript Blocks editor. This lesson is an introduction to the micro:bit. Focuses upon a basic written algorithm, either in a flowchart or pseudocode. Students develop their own program and test on the micro:bit.
Teacher Guide
Open
Activity
In the JavaScript Blocks editor select the basic option from the block menu and find the “show string” block and drag onto the workspace.

Place the show string block within a forever loop. If a forever loop is not on the workspace when loaded, this can be found within the basic option within the blocks as well. The show string will display the text that the user enters within the variable box.

Edit the string by clicking on the word “Hello!” and typing in “Ask me a Question”.

Save the project and download to the micro:bit.
Challenge
Try to add the following functionality:
- Adding yes & no buttons
- Introducing a shake input
- Add a scoring system
Erfahre mehr
Check out the 'Guess the Number' lesson to start using inputs.