Skip to content

Latest commit

 

History

History

05_Private-Object

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Private Object

What You'll Do

Create a user object which has three properties:

  • username
  • password
  • age

Username and password must not be accessible when accessed with alert() or console.log(). Age can be publicly accessed.

Requirements

  • Use JavaScript symbols

Output

  • Name: undefined
  • Password: undefined
  • Age: 27