Instagram | Twitter | LinkedIn
What is the output of the following code ?
A. undefined
B. ferrisWheel
C. 馃帯
馃憖 Click here to see the correct answer and explanation
| Correct Answer | Explanation |
|---|---|
| C | Property accessors provide access to an object's properties by using the dot notation or the bracket notation. In this case, we are using the bracket notation, and the park[ferrisWheel] syntax, the ferrisWheel is just a String or Symbol where park is looking for a key called ferrisWheel whose value is 馃帯. |
Explanation based on 馃憠馃徏 Property accessors
驴 Qu茅 imprime el siguiente c贸digo ?
A. undefined
B. ferrisWheel
C. 馃帯
馃憖 Haz click aqu铆 para ver la respuesta correcta y su explicaci贸n
| Respuesta correcta | Explicaci贸n |
|---|---|
| C | Los accesores de propiedades (o "Property accessors" en ingl茅s) proporcionan acceso a las propiedades de un objeto mediante el uso de la notaci贸n de punto o la notaci贸n de corchete. En este caso, estamos utilizando la notaci贸n de corchetes y en la sintaxis park[ferrisWheel], ferrisWheel es solo un String o un Symbol en donde park busca la key llamada ferrisWheel cuyo value es 馃帯. |
Explicaci贸n basada en 馃憠馃徏 Property accessors

