Stuff
public text v1 · immutabledocument.write(base+"<sup>"+exp+"</sup> = ");
if(exp>=0){
for(i=0;i<exp;i++){
if(exp!=1){
document.write(base);
}
if(i!=exp-1){
document.write(" x ");
}else if(exp!=1){
document.write(" = ");
}
}
}
document.write(power(base,exp));