Doubts about the export of es6?

Why can"t export {name:"234"} do this during modular export?

it must be var a = {name: "234"} export {a}.

Apr.19,2022

http://es6.ruanyifeng.com/-sharpdo...

{name:'123'} is the syntax of js object, but not the export syntax of es6 module
export syntax:
export {a, b} or export {an as c, b} or export const a = 1

export default is a

that can export a js object.
  

default

Menu