Glossary: Software Design Patterns in JavaScript
Magic number
Also written: magic numbers
A number in code with no name to say what it means, like 75 and 0.85 in the old placeOrder. The fix is a named constant such as FREE_SHIPPING_AT.
Glossary: Software Design Patterns in JavaScript
Also written: magic numbers
A number in code with no name to say what it means, like 75 and 0.85 in the old placeOrder. The fix is a named constant such as FREE_SHIPPING_AT.