##### A simple calculator

A normal calculator. That can do most mathematical functions such as sqrt() and can even run javascript if you enclose it with ```
function(){
//code goes here
}
```

Have fun!

Share your repls and programming experiences

A normal calculator. That can do most mathematical functions such as sqrt() and can even run javascript if you enclose it with ```
function(){
//code goes here
}
```

Have fun!

Are you sure it can’t

@Highwayman I meant plain sqrt(); I tried Math.eval() and

but they both did not work

@sojs it’d more be like

@Highwayman That is genius. I never thought of that. Thanks!

@Highwayman Actually, that will not work because eval() only evaluates code in the string and does not use or interact with variables in the global namespace.

@sojs are you sure? That’s the entire point of eval though. It does work, just try it.

@Highwayman I did.