JavaScript – Creating Default Arguments
08
JunI ran into an interesting quirk with JavaScript yesterday, one I’m surprised I hadn’t noticed before. JavaScript does not allow you to give arguments default values when defining functions. So after a bit of tinkering, I came up with a solution. Of course you could use a ternary operator if you prefer, however I know [...]






