---
title: "Discussion on \"JavaScript Object Methods Explained!\" | Hashnode"
description: "Discussion on \"JavaScript Object Methods Explained!\". 1. assign()\nIt clones and copy the values of source object into target object and return the newly created object by merging them.\n// 1. assign()\nconst fruit = {\n    name: 'Water Melon',\n    icon: '🍉',\n    type: 'Fruit'\n};\n\nconst beverages = {\n    n..."
url: "https://hashnode.com/posts/javascript-object-methods-explained/6061b0bb5aa4944ee40fb47b"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [JavaScript Object Methods Explained!](https://iamharis.hashnode.dev/javascript-object-methods-explained?utm_source=hashnode&utm_medium=feed)

1\. assign() It clones and copy the values of source object into target object and return the newly created object by merging them. // 1. assign() const fruit = { name: 'Water Melon', icon: '🍉', type: 'Fruit' }; const beverages = { n...

Mar 29, 2021 · 6 min read · iamharis.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#vanilla-js-1](https://hashnode.com/tag/vanilla-js-1)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#webdev](https://hashnode.com/tag/webdev)

## Written by

[Mohammad Haris](https://hashnode.com/@iamharis)

@iamharis · India

  
[View profile](https://hashnode.com/@iamharis)

Enthusiastic Developer

I am Full Stack Developer. Web Technologies Enthusiastic.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
