javascript

var x = 5, y = 4;
if (x = y > 4) {
  y = 7
  console.log(x);
}
y;

var x = 5,
y = 4;
if (x = y > 4) {
  y = 7
}
x;
var y=100, j =1, result=1;
for(i=0; i<y/j;i=j){
  j=j*2;
  result=result+i
}
result;

function foo(x){
if(x==0)
  return 1;
return x*foo(x-1);
}




你可能感兴趣的:(javascript)