Forgot username/password? Don't have an account?
Login with Facebook
Home » Courses » Animating with Functions » Setting default parameter values
Subscribe for updates.
* New to us? log in with Facebook and get a free day pass

Setting default parameter values

Until now, all the functions that we've worked with had parameters or didn't. What if we wanted to use a function where we have the option to send information to it - but not always? In other words, wouldn't it be nice to have default values to the parameters we sent into our functions. That's the main topic of this lecture. Warning: this is a relatively new feature in JavaScript and not all browsers have incorporated it. As such, if you're running in any other browser besides Firefox, this won't work. Note: Stay Tuned. We'll explain how to make it work in non-supported browsers shortly.
Got A Question?

'I love being Prime'

Have a question but don't want to ask it publicly? If you are a prime member just ask right here and we will get back to you within 48 hours. Not prime yet? no worries you can ask publicly below.

Act now while we have available seating

Our on line school is private, affordable and interactive with trainer support.
Act now save your seat before someone else takes yours.
Act now