FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

JavaScript-Code-Challanges/05_Private-Object at main · syedsohan/JavaScript-Code-Challanges · GitHub

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

README.md

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

Back | FazBrowse Home | New Git URL