Im currently using node.js for a project, if you can, please help. Busy making a to-do list, and want to add listname to numlists, will this work?
rl.question("What would you like to do?", function(firstAnswer){
if(firstAnswer == '1'){
var addList = [];
var numLists = [];
for( i = 0; i< numlists.length; i++){
rl.question("What is the list's name?", function(listName){
numLists[i] = listName;
rl.question("Do you want to add another list?", function
}
}
}
else if(firstAnswer == '2'){
}
else if(firstAnswer == '3'){
}