If you never have another variable called
responseData
, and never want anyone else to approve your code reviews, sure. Try this for an example of why that's an issue:
const foo = () => { bar = 1 }; foo(); console.log(bar);
. Undeclared variables are globals. —
Zac Anger 48 secs ago