# JS-Object-english-2022-5-30-8-10-47-269 **Repository Path**: taoshaoji/JS-Object-english-2022-5-30-8-10-47-269 ## Basic Information - **Project Name**: JS-Object-english-2022-5-30-8-10-47-269 - **Description**: js Object learning - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-06-19 - **Last Updated**: 2022-06-22 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # JS-Object 1. Program and observe the following requirements: - Create a null object and set its variable name as user; - Add a name attribute and set its value as John; - Add a surname attribute and set its value as Mike; - Modify the value of name attribute as Peter; - Delete name attribute of user. 2. Program and observe the following requirements: calculate how many pieces of fruit there are in the fruit object and the output should be 50. ``` var fruit = { apple: 20, pear: 20, peach: 10 }; // write your code here... ``` ## Requirements Create a js document and complete the above requirements.