Прописал логику при выборе 2 пункта

related #3
parent e2177633
...@@ -26,6 +26,10 @@ while (true) { ...@@ -26,6 +26,10 @@ while (true) {
if (parseInt(userAns) == 1) { if (parseInt(userAns) == 1) {
getTrucksInfo(trucks); getTrucksInfo(trucks);
continue; continue;
} else if (parseInt(userAns) == 2) {
const truckId: any = readlineSync.question('Введите номер грузовика: ');
trucks[parseInt(truckId) - 1].getInfoSolo();
continue;
}; };
} else { } else {
continue; continue;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment