Skip to content

Latest commit

 

History

History
22 lines (14 loc) · 369 Bytes

File metadata and controls

22 lines (14 loc) · 369 Bytes

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