What will be the output? Javascript variable vs object

Publié le: 08 janvier 2023
sur la chaîne: Build with Kewal
157
9

Hello Mate,
Let's discuss problem statement.

We have code snippet we have to tell the output and why?

If we assign a Object to a variable so it's copy by reference but with other variable it's only copy values.

For example: If we create a object and assign to another variable and then change value in second variable so it's impact on your source object also but it's not happen with other types of variable.

Source: https://gist.github.com/kewal28/c68ec...


Sur cette page du site, vous pouvez voir la vidéo en ligne What will be the output? Javascript variable vs object durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Build with Kewal 08 janvier 2023, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 157 fois et il a aimé 9 téléspectateurs. Bon visionnage!