Explain how $provide.constant is used in AngularJS and why it’s beneficial for configuration.

$provide.constant defines unmodifiable values accessible across an app, useful for config data like API URLs. Unlike services, constants are accessible in config blocks, making them available early for consistent app-wide settings.

app.constant('API_URL', 'https://api.example.com');