Does the parameters in the shorthand version needs an order? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Does the parameters in the shorthand version needs an order?

6th Aug 2016, 5:05 AM
forward
2 Answers
0
yes
27th Aug 2016, 8:42 AM
Aditya Patnaik
Aditya Patnaik - avatar
0
It's a good practice to keep the order. But parameters in shorthands have default values so it's okay to skip things you do not wish to change. Also, most parameters are unique, so the browser knows what you mean even if things are not in order
18th Nov 2016, 3:54 PM
Dawid Borusiak
Dawid Borusiak - avatar