Fix syntax error in object-copy article#3179
Fix syntax error in object-copy article#3179SpliceReborn wants to merge 1 commit intojavascript-tutorial:masterfrom
Conversation
The square brackets in 'Object.assign(dest, src1[, src2, src3...])' results in a syntax error. The correct syntax should be 'Object.assign(dest, src1, src2, src3, ...)', but I've added a srcN, changing it to 'Object.assign(dest, src1, src2, src3, ..., srcN)' to make it more relevant to the explanation found underneath the original code snippet.
|
How shall we tell people that The same question again and again... |
|
[ ] ... or, |
|
@joaquinelio You mean, write it as |
|
oh! I meant individual format |
|
even if we make the brackets look different, people who don't know what they mean will still be confused. |
|
yep |
The square brackets in 'Object.assign(dest, src1[, src2, src3...])'
results in a syntax error. The correct syntax should be
'Object.assign(dest, src1, src2, src3, ...)', but I've added a srcN, changing it
to 'Object.assign(dest, src1, src2, src3, ..., srcN)' to make it more relevant
to the explanation found underneath the original code snippet.