numbers
> typeof function(){}
'function'
> typeof function(){conslole.log("cesadasd")}
'function'
> typeof "hello"
'string'
> var x=12345;
undefined
> x *=342
4221990
> 0.1+0.2
0.30000000000000004
> 1 - 0.3 +0.1 == 08
false
> Math.ceil(10/3);
4
> Math.floor(10/3);
3
> 4/0;
Infinity
> -4/0;
-Infinity
> var y=0;
undefined
> var x=10;
undefined
> (x / y ) == Infinity
true
> parseInt("23542342354")
23542342354
> parseInt("2345.2545")
2345
> parseInt("Banana")
NaN
> parseFloat("sdfsdfsdf")
NaN
> var x="cat";
> isNaN(parseFloat(10))
false
> isNaN(parseFloat(x))
true
>
isFinite()
No hay comentarios:
Publicar un comentario