mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-09-02 03:02:54 +02:00
[javascript/*] typeof is an operand and not a function/method - fix usage / remove parens
This commit is contained in:
@@ -471,8 +471,8 @@ var miNumeroObjeto = new Number(12);
|
||||
miNumero == miNumeroObjeto; // = true
|
||||
|
||||
// No son exactamente iguales.
|
||||
typeof(miNumero); // = 'number'
|
||||
typeof(miNumeroObjeto); // = 'object'
|
||||
typeof miNumero; // = 'number'
|
||||
typeof miNumeroObjeto; // = 'object'
|
||||
miNumero === miNumeroObjeyo; // = false
|
||||
if (0){
|
||||
// Este código no se ejecutara porque 0 es false.
|
||||
|
Reference in New Issue
Block a user