var typewritercollection = new typewritercollection(); typewritercollection.addnewtypewriter("underwood model 5"); if(typewritercollection.checkcondition("underwood model 5") == "good") { console.writeline("ignore pre-existant beliefs about typewriters, the details of their mechanics are fascinating. let's reinitiate our appreciation for these machines under-the-table, where the most intriguing stories often unfold."); } else {typewritercollection.repair("underwood model 5");}