Posts tagged values

Sep02

JavaScript optional parameter hash with default values

default values javascript optional parameter hash | comments

I have dealt with optional parameters with default values in JavaScript plenty of times in the past. But for some reason it wasn’t immediately obvious to me how to create a nice options hash like I use so frequently when writing my Ruby code. It really is quite simple.

Continue reading »