9.17: Arguments Array in JavaScript – p5.js Tutorial




In this JavaScript Tutorial, I discuss how the JavaScript “arguments” array can be used for function and constructor overloading

Support this channel on Patreon: https://patreon.com/codingtrain

Send me your questions and coding challenges!: https://github.com/CodingTrain/Rainbow-Topics

Contact: https://twitter.com/shiffman

Links discussed in this video:
MDN reference: https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Functions/arguments

Source Code for the Video Lessons: https://github.com/CodingTrain/Rainbow-Code

p5.js: https://p5js.org/
Processing: https://processing.org

For More JavaScript Tutorials: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZmA-d3D0iFIvgrB5_7kB8H

Help us caption & translate this video!

http://amara.org/v/VR42/

Original source


16 responses to “9.17: Arguments Array in JavaScript – p5.js Tutorial”

  1. hi this is dario from italy… i said that 'cause my english is imperfect. anyway my question is: can i return an array from a function? thank you for the helping and compliments for your videos

  2. I always used to think how can you send 1 or 2 or 3 or 4 values to stroke() or fill(), and its just changes the order and number of arguments.

    Now, I have an idea. But, I'm still not completely sure.

    Guess I'll open up p5.js in Atom for the first time! ๐Ÿ™‚

Leave a Reply