clone obj code example Example: how to clone an object const first = {'name': 'alka', 'age': 21} const another = Object.assign({}, first);