Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>JS Bin</title>
</head>
<body>
</body>
</html>
 
/*
* Create an instance of the `Cat` class and set `name` to `"Hobbes"` and `breed` to `"Tabby"`; save the instance to a const variable named `hobbesCat`
* Create another instance of the `Cat` class and set `name` to `"Tigger"` and `breed` to `"Tiger"`, save the instance to a const variable named `tiggerCat`
*/
class Cat {
  constructor(name, breed) {
    this._name = name
    this._breed = breed
  }
}
// add your code below
// add your code above
console.log(hobbesCat)
console.log(tiggerCat)
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x