Page 41 - Touchcode_C7_Flipbook
P. 41
Experiential Learning
Coding Task 02
Calling a function with a single parameter
To perform the task, follow these steps:
Step 1: Open MakeCode Arcade, create a new project ‘ Function with single parameter’
and click on ‘Create’.
Step 2: Click on ‘Advanced’, select ‘Functions’, and click on the ‘Make a Function...’.
Step 3: Click on the text button, Name your function, ‘Touchcode-7’, and Click on ‘Done’.
Step 4: From the ‘Game’, select the ‘splash’ block and drop it to the function block.
Step 5: From the ‘text’, select the ‘Join’ block and drop it to the splash block.
Fun with Functions 39

