There are three types of cloning available in JavaScript.
  • Deep copy using iteration
  • Converting to JSON and back
  • Using Object.assign
BY Best Interview Question ON 25 Aug 2022