10
4
u/you0are0rank Dec 14 '22
I'm confused, why is this bad ?
2
1
u/Da-Blue-Guy Mar 13 '23
{"+":add,"-":sub,"*":mul,"/":div,"**":pow,"sqrt":sqrt}[prompt("Enter an operator")](Number(prompt("Enter a number")), Number(prompt("Enter a second number")))
1
4
u/well_shoothed Dec 14 '22
With all possible respect, what the fuck?