Update 'index.js'
This commit is contained in:
parent
7e0ccc2e32
commit
f304a9147f
1 changed files with 85 additions and 84 deletions
3
index.js
3
index.js
|
@ -15,7 +15,6 @@ function prompt(q) {
|
|||
return new Promise((resolve) => {
|
||||
rl.question(`${q}`, function (a) {
|
||||
rl.close();
|
||||
console.log("coding!");
|
||||
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]): ");
|
||||
|
||||
console.log("coding!");
|
||||
|
||||
function langExec(langCode) {
|
||||
if (lang == "js") {
|
||||
return eval(langCode);
|
||||
|
|
Loading…
Reference in a new issue