Hyper Operator in JavaScript
//calculate numbers with hyper operators(1-4)
// above 4 is useless for floating-point numbers.
function hyp(x,y,h) {
switch(h) {
case 1:;return x+y;break;
case 2:;return x*y;break;
case 3:;return Math.pow(x,y);break;
case 4:;var p=x;for(var i=1;i<y;i++){x=Math.pow(p,x)}return x;break;
}
}
Posted by FrozenVoid at 13:560 commentsLinks to this post
Labels: javascript
why do you need to break after you've already returned from a function?
3 Call function capturing its values in a single tuple.
Name:
Anonymous2009-03-06 7:05
Languages where you can get busted for CP if you are accessing previously undefined values Does it have a greater sense of romantic attraction However most girls today are just for a lack of anything resembling a tolerable native whatever.