function pow(b,e){ return --e ? b * pow(b,e) : b } alert(Math.pow(2482,(1/4))); alert(pow(2482,(1/4)) == Math.pow(2482,(1/4)));