<tag attribute="value value">content & more</tag>
<!-- HTML comment -->
<style scoped>
/* block comment */
element,
.class {
// inline comment
property: value;
property: 48px;
.command(argument, 'string');
&:pseudo { property: value; }
}
</style>
<script>
function Person(name) { // constructor for class `Person`
this.greetings = [ 'hello!', 'hi!', handshake ];
}
function TestSubject(name, adopted) { // constructor for class `TestSubject`
Person.call(this, name, adopted); // calls the parent constructor
if (typeof adopted === 'boolean') {
this.is_adopted = adopted;
} else this.is_adopted = false;
}
this.location = { name: 'Aperture Science Enrichment Center' }
Util.extend(TestSubject, Person); // extends `TestSubject` from `Person`
var you = new TestSubject('Chell', true); // creates an instance of `TestSubject`
</script>