Get started with stampit CDN
MIT licensed
Library: Stampit - creates functional component apps.
Tags:- object
- prototype
- object oriented
- browser
- inheritance
- oop
- node
- factory
- class
- stamp
Stable version
Copied!
How to start using stampit CDN
<!DOCTYPE html>
<html>
<head>
<title>Get started with stampit CDN - cdnhub.io</title>
<script src="https://cdn.cdnhub.io/stampit/4.3.2/stampit.umd.min.js"></script>
</head>
<body>
<script>
// Define a base stamp with properties and methods
const BaseStamp = Stamp.create({
name: '',
greet: function() {
console.log('Hello, I am a ' + this.name);
},
});
// Create a derived stamp with an extended property
const DerivedStamp = BaseStamp.extend({
age: 0,
introduce: function() {
this.greet();
console.log('I am ' + this.age + ' years old.');
},
});
// Create an instance of the derived stamp
const person = DerivedStamp.create({ name: 'John Doe' });
// Call methods on the instance
person.introduce();
</script>
</body>
</html>
All versions
0.2.3
0.3.0
0.3.1
0.3.2
0.3.3
0.4.0
0.4.2
0.5.0
0.5.1
0.6.0
0.6.1
0.7.1
1.0.0
1.0.1
1.0.2
1.1.0
1.2.0
2.0.1
2.0.2
2.0.3
2.1.0
3.0.0
3.0.1
3.0.2
3.0.3
3.0.4
3.0.5
3.0.6
3.1.0
3.1.1
3.1.2
3.1.3
3.2.0
3.2.1
4.0.1
4.0.2
4.1.0
4.1.1
4.1.2
4.2.0
4.3.0
4.3.1
*** 4.3.2
5.0.0-next
5.0.1-next
5.0.3-next
5.0.4-next