🕛
Thursday / Oct 20th, 2022
10/20/2022
Get Started
Videos
Tracks
Challenges
Community
Guides
Discord
GitHub
About
FAQ
Tracks
>
Code! Programming with p5.js
Functions & Return
Languages
p5.js,
JavaScript
Topics
basics,
functions,
Show more
🔗
Back
22 / 35
track stops
timestamps
0:00
Introduction
5:35
Returning a Value
Trailer
What is Code!?
Getting Started
Code! Programming with P5.js
p5.js Web Editor
Shapes & Drawing
Color
Errors & Console
Code Comments
Variables
Using Variables mouseX & mouseY
Define Your Own Variables
Incrementation Operators
random()
map()
createGraphics
Conditional Logic
Conditional Statements
The Bouncing Ball
Else and Else if, AND and OR
Boolean Variables
Loops
while & for Loops
Nested Loops
Functions
Function Basics
Function Parameters and Arguments
Functions & Return
Objects
Object-Oriented Programming with ES6
Classes in ES6
Constructor Arguments with Classes
JavaScript Files in the p5.js Web Editor
Arrays
Arrays
Arrays and Loops
Arrays of Objects
Mouse Interaction with Objects
Removing Objects from Arrays
Object Communication Part 1
Object Communication Part 2
p5.js Web Editor: Uploading Media Files
Objects & Images
Previous
Next
CODE EXAMPLES
DESCRIPTION
Returning a value
Demonstration of converting miles to kilometers using a function.
This video covers what it means for a function to return a value.
🔗
Copy link
Returning a value
Demonstration of converting miles to kilometers using a function.
This video covers what it means for a function to return a value.