Why does export default let arr = [] report errors? Explore the details

Time:2020-7-24

Why?
export default let arr = []Will you report an error?
and

 let arr = []
 export default arr

Is it right?

Can named functions be set to default export?
export default function fun(){}

In many articles, you can’t follow the default statement,
For example:
Why does export default let arr = [] report errors? Explore the details

Why does export default let arr = [] report errors? Explore the details
But I think it’s a bit of a forced explanation.

There are essential causes behind any phenomenon,

Export default exports the default variable, that is, there is only one default variable,
If we allow the direct export of declaration statements, it is possible to declare more than one variable at a time
export default let a, b, c = 1;
Therefore, from the perspective of syntax design, it is forbidden to declare variables directly after export default