Paracetamol.js💊| #54: Explica este código JavaScript
source link: https://dev.to/duxtech/paracetamoljs-54-explica-este-codigo-javascript-2phj
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Discussion (1)
Collapse
Expand
Respuesta:
C: TypeError
name
no es ni hace referencia a una función, no tiene sentido intentar invocar a un string
como si fuera una función.
No pude ser Syntax Error
por que no se cometio ningún error de tipeo, el código no esta mal escrito pero tampoco es un código valido.
No puede ser Reference Error
por que no hay problemas de referencia al intentar acceder a la variable name
.
Se genera una excepción de tipo TypeError cuando un valor no es del tipo esperado, entonces se lanza un TypeError: name is not a function!
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK