10 lines
178 B
JavaScript
10 lines
178 B
JavaScript
function consoleloop(){
|
|
let x= terminput('')
|
|
termshow('executing : '+x+' ...')
|
|
try{
|
|
let nfunc = new Function(x)
|
|
termshow(nfunc())
|
|
}catch(e){
|
|
termshow('error: '+e)
|
|
}
|
|
}
|