Update 'index.js'

This commit is contained in:
nodemixaholic 2024-03-15 18:48:14 +00:00
parent 7e0ccc2e32
commit f304a9147f

View file

@ -15,7 +15,6 @@ function prompt(q) {
return new Promise((resolve) => { return new Promise((resolve) => {
rl.question(`${q}`, function (a) { rl.question(`${q}`, function (a) {
rl.close(); rl.close();
console.log("coding!");
resolve(a); resolve(a);
}); });
}); });
@ -25,6 +24,8 @@ let problem = await prompt("What's the project? (no external libs or reqs): ");
let lang = await prompt("What's the lang? (js, python, ppython [panda3d python]): "); let lang = await prompt("What's the lang? (js, python, ppython [panda3d python]): ");
console.log("coding!");
function langExec(langCode) { function langExec(langCode) {
if (lang == "js") { if (lang == "js") {
return eval(langCode); return eval(langCode);