HTML Editor
Run
<!DOCTYPE html> <html lang="en-US"> <body> <script> function car(brand, color) { this.brand = brand; this.color = color; } car.prototype.seater = 4; var mustang = new car("Ford", "yellow"); document.write(mustang.seater); </script> </body> </html>
OUTPUT
×
Save as
Private
Tag
AJAX
Canvas
CSS
Google Charts
HTML
Javascript
jQuery
JSON
SASS
SVG
Description
Save