Skip to content

Instantly share code, notes, and snippets.

@michhub-dev
Created May 21, 2020 16:22
Show Gist options
  • Save michhub-dev/64d1b67d063a912acff822072dc48fec to your computer and use it in GitHub Desktop.
Save michhub-dev/64d1b67d063a912acff822072dc48fec to your computer and use it in GitHub Desktop.
JS Bin // source https://jsbin.com/tinimoz
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
function Car ( brand, year){
this.brand = brand;
this.year = year;
this.engine = "stopped";
}
Car.prototype.start = function(){
this.engine = "started";
};
Car.prototype.stop = function(){
this.engine = "stopped";
};
var oldChevy = new Car("chevy", 2020);
var newPorch = new Car ("porch", 2025);
function pretty (){
this.me = "cash";
}
</script>
<script id="jsbin-source-javascript" type="text/javascript">function Car ( brand, year){
this.brand = brand;
this.year = year;
this.engine = "stopped";
}
Car.prototype.start = function(){
this.engine = "started";
};
Car.prototype.stop = function(){
this.engine = "stopped";
};
var oldChevy = new Car("chevy", 2020);
var newPorch = new Car ("porch", 2025);
function pretty (){
this.me = "cash";
}</script></body>
</html>
function Car ( brand, year){
this.brand = brand;
this.year = year;
this.engine = "stopped";
}
Car.prototype.start = function(){
this.engine = "started";
};
Car.prototype.stop = function(){
this.engine = "stopped";
};
var oldChevy = new Car("chevy", 2020);
var newPorch = new Car ("porch", 2025);
function pretty (){
this.me = "cash";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment