COFFEESCRIPT Questions and Answers

Explain what is the difference between copying an object through assignment and clone-function ?

The difference between copying an object through assignment and clone function is that how they handle references. The assignment only copies the object’s references while clone-function creates a complete new object.