Page 50 - Touchcode_C8_Flipbook
P. 50
Applied Project
Calling a function to print a statement
To perform the task, follow these steps:
Step 1: Open MakeCode Arcade and create a ‘new project’.
Step 2: Click on ‘Advanced’, select ‘Functions’, and click on
the ‘Make a Function...’. Rename your function as
shown.
Step 3: Drag the splash block to the workspace and drop it
onto the function block.
Step 4: Drag the ‘Str’ from function and place it in the ‘splash’
block.
Step 5: Click on ‘Advanced’, then select ‘Functions’ and
then click on ‘Touchcode-7’.
Step 6: ‘Touchcode-7’, will appear on workspace as:
Step 7: Change ‘abc’ to ‘First statement’.
48 Touchcode-VIII

