comprobar si una variable tiene valor

Post on 22-Jan-2018

165 Views

Category:

Documents

1 Downloads

Preview:

Click to see full reader

TRANSCRIPT

COMPROBAR SI UNA VARIABLE TIENE VALOR:

TYPEOF

Sirve para preguntarle que tipo de variable tiene en ese momento

UNDEFINED

Si la variable no esta defini da saldrá esto:

Cuando la variable ya esta difinida debe aparecer

Finalmente tenemos

top related