Static-typing and optional parameters in native JavaScript.