Sha256: 9243f0096f1cdc5fd255e5800ab0fcc03c4824063ab38a515b12f87d6be774c4
Contents?: true
Size: 309 Bytes
Versions: 4
Compression:
Stored size: 309 Bytes
Contents
class Logger { constructor(name) { this.name = name; } logit(val) { console.log(`Logged by ${this.name}: ${val}`); } } const myLogger = new Logger('First Logger'); const otherLogger = new Logger('Foo Logger'); myLogger.logit('hello world'); otherLogger.logit('hi!'); myLogger.logit('bye');
Version data entries
4 entries across 4 versions & 1 rubygems