Skip to content

Instantly share code, notes, and snippets.

@jhnlsn
Created April 27, 2019 19:02
Show Gist options
  • Save jhnlsn/d6ba5dbf57620e295429203f6fa0a275 to your computer and use it in GitHub Desktop.
Save jhnlsn/d6ba5dbf57620e295429203f6fa0a275 to your computer and use it in GitHub Desktop.
JS Class
class Zoo {
lion = 'Randy'
#password = 'meat'
}
const bronx = new Zoo()
console.log(bronx); // Zoo { lion: 'Randy' }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment