Exercise on Default Arguments
It's time to play with function arguments.
We'll cover the following
Exercise 1:
Write a function that executes a callback function after a given delay in milliseconds. The default value of delay is one second.
The setTimeout()
method can be used to specify the time delay before a function is executed.
Get hands-on with 1400+ tech skills courses.