whatsthecodeforthat.com

What's the code for Class/Struct Definition in javascript?

class CustomType {
	constructor(field1, field2) {
		this.field1 = field1;
		this.field2 = field2;
	}
}