Persistent Systems Interview Question

How do you deep copy a variable in AngularJS