Closed AlexisK closed 6 years ago
Make it work with the following usecase:
var pen1 = new Pen (); var paper1 = new Paper (); pen1.write(paper1, 'Hi.\n'); pen1.write(paper1, 'I think, inks are running low.\n'); pen1.write(paper1, 'This should never be written!\n'); console.log(paper1.print());
https://github.com/kokobillsoft/BuildingMaket/blob/master/AlexisLessons/SecondHomeWork/PenAndPaper.js
Make it work with the following usecase: