Keeping things simple here, consider this modern vanilla JS code:
function foo(bar, baz=1){
...
The use of default arg settings (baz) is pretty simple and expected. Mozilla says not a problem. Is there something in best practice regarding default params in JS I never learned in the 15+ years?
My IDE (JetBrains) can not hang with the code, yet my apps are working fine. Is there a reason why this is throwing errors or is my IDE in error? See screen shot of the validation error.
and Firefox Dev is fine with the syntax:
thanks in advance.