inserting macros instead of hard coded board names
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
# counter quiz answers
|
||||
|
||||
Learn how to create a counter with the BBC micro:bit button.
|
||||
Learn how to create a counter with the @boardname@ button.
|
||||
|
||||
This is the answer key for the [counter quiz](/lessons/counter/quiz).
|
||||
|
||||
@ -48,7 +48,7 @@ input.onButtonPressed(Button.A, () => {
|
||||
|
||||

|
||||
|
||||
We included the code ``on button pressed("A")`` that runs each time the user presses A. The code increments `count` by `1`. We increase `count` by 1 whenever the user presses the button. So the third time the A button is pressed on the BBC micro:bit, the number 3 is displayed
|
||||
We included the code ``on button pressed("A")`` that runs each time the user presses A. The code increments `count` by `1`. We increase `count` by 1 whenever the user presses the button. So the third time the A button is pressed on the @boardname@, the number 3 is displayed
|
||||
|
||||
<br/>
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
# counter quiz
|
||||
|
||||
Learn how to create a counter with the BBC micro:bit button.
|
||||
Learn how to create a counter with the @boardname@ button.
|
||||
|
||||
## Name
|
||||
|
||||
|
Reference in New Issue
Block a user