This file contains 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
class Trader { | |
String name; | |
String city; | |
Trader(this.name, this.city); | |
} | |
class Transaction { | |
Trader trader; | |
int year; | |
int value; |
This file contains 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
const Prime = (function () { | |
function Prime(number = 0) { | |
this.number = number; | |
this.factorSet = this.factors(); | |
} | |
Prime.prototype.toString = function() { | |
return this.number; | |
} | |