Drag the background!

Step 2. Function Parameters and Arguments

Daniel Shiffman explains the idea of a function that takes "arguments" into its "parameters".

If you want a challenge: Edit the code and use a "for" loop to make multiple lollipops of random sizes and positions. Make hundreds or even thousands of them. You cannot do any damage!

World

Tutorial 5.2
Function Parameters and Arguments
The background is a program, showing the JavaScript graphics used on this site.
The globes light up when you log in.
 
Font:

Users retain ownership of user content.

Platforms      Stats      The name      Terms and conditions

Call for partners      Contact

Call for partners!
Ancient Brain is looking for a partner to co-write a JavaScript coding book for schools, to be used worldwide. This would be a course for students in learning to code from scratch. The book and course will be integrated into the Ancient Brain site. This is an opportunity for someone looking to develop a course and textbook to partner with a site to promote it. Read more.