One thing we need to aware of is default parameter. Mozilla won't accept default parameter like this:
function test(param = "default") {}
So we need to adjust it to code that can be "rendered" by the browser. And the code is:
function test(param) {Just only do that on our first on function will remove the default parameter error. 😊
param = (typeof param == 'undefined' ? {your default value} : param );
}