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 class called `Cat` and inside that class create a `constructor()` that accepts two parameters: `name` and `breed`
Inside the `constructor()` method, create `name` and `breed` properties and sent them equal to your parameters
*/
/*
uncomment lines below after creating your class
and then press "run" in the jsbin console
*/
//const garfield = new Cat('Garfield', 'Tabby')
//console.log(garfield)
 
Output

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

Dismiss x