Target vs. Source in Object.assign();

Can anyone explain this a little better (target vs source)? I’m having a hard time understanding the difference.

Thanks!

mdn’s docs are ridiculously well written, can’t really do better. but you might shoot off some more targeted questions

target and source are antonyms to each other aren’t they? opposites. if you’re looking for a dictionary… google them, right? and if not, then there’s no other special meaning to those words

2 Likes