How can i execute each function with his KeyWord to excute it
const CMDS = [ "Time", "Date", "Battery", "Evaluate Math Simple Expressions(EMSE)", "Calendar", "Help" ]; const fun = [ "time()", "date()", "battery()", "EMSE()", "Calendar()", "help()" ]; var cmd = cap; let used = false; for(let i=0;i<CMDS.length;i++){ if(cmd.toLowerCase()==CMDS[i].toLowerCase()){ used = true; break; } For example: User_input = "Time"; It should get the keyword time, and it works perfectly, but how I code this to call the time() function and show it to the user