I'm trying to make a simple reply type that can reply to a reply using readline-sync on typescript. My goal here is if can look like you are replying to a reply (that can also use recursion). This is the example output is going to be...
-> good?
--> yes
---> yeah
----> alright
Here is what I coded.
function reply() {
let read = require('readline-sync');
let arrow = read.question('->');
}
reply();
A little help/guide about this.