Created
May 21, 2020 16:22
-
-
Save michhub-dev/64d1b67d063a912acff822072dc48fec to your computer and use it in GitHub Desktop.
JS Bin // source https://jsbin.com/tinimoz
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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