DEV Community

Discussion on: Computed property names => ES6 !!!!

Collapse
 
seidkhan93 profile image
seidkhan93

You are wrong in last example! Javascript objects cannot have same property names. In your last example the result will be {name: "Nicole"}

Collapse
 
thesalafee profile image
Naasir Bush

Great tutorial, however @seidkhan93 is correct. That last example is mistaken bro. The output is exactly as he's described in his comment. Overall great job.