Never reassign parameters! Use a local var instead. Before: function foo(x) { x = 2; } After: function foo(x) { const y = 2; } #JavaScript #CodeSmells


United States Trendy
Loading...

Something went wrong.


Something went wrong.