CodexBloom - AI-Powered Q&A Platform

Unexpected Behavior When Using Default Parameter Values in JavaScript Arrow Functions - ES2023

👀 Views: 0 💬 Answers: 1 📅 Created: 2025-08-21
javascript arrow-functions es2023

I'm encountering an unexpected behavior with default parameter values in ES2023 arrow functions. I have the following code snippet: ```javascript const add = (...