Lesson 1/1~14 min
Practice
Defining and calling functions, parameters, `return` and local variables.
What you practise here
1Practice
Start the exercisesShort tasks that check you understand: multiple choice, predicting the output, finding the bug, completing code.
- Predict the outputWhat the function returnsBasic10 XP
- Predict the outputA function without returnElementary20 XP
- Multiple choiceThe return statementBasic10 XP
- True / falseTwo parametersBasic10 XP
- Predict the outputA variable inside a functionElementary20 XP
- Find the bugA forgotten callBasic10 XP
- Complete the codeThe larger of two numbersElementary20 XP