Skip to content

recruiting-system/JS-Object-english-2022-5-30-8-10-47-269

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 

Repository files navigation

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.
  1. 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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published