Functions
Using Functions
Telling Jiki to run one of his little machines by writing its name followed by two brackets.
Function Inputs
Putting values into a function's input slots to change what it does each time it runs.
Functions That Return Things
Catching a value that pops out of a function's output chute and using it in your code.
Writing Your Own Functions
Using the function keyword to build your own machines that Jiki can put on his shelves and reuse.
Adding Inputs to Functions
Adding input slots to your own functions so they can do different things based on the values passed in.
Adding Returns to Functions
Using the return keyword to give your own functions an output chute that hands a value back to the caller.
Using Multiple Functions Together
Splitting a problem into small single-responsibility functions that call each other, so each piece stays simple and reusable.
Ready to Start Your Coding Journey?
Join thousands of learners on Jiki.
Practice coding exercises, get feedback from mentors, and level up your skills — it's free!