Skip to content

Instantly share code, notes, and snippets.

@teffcode
Last active June 12, 2020 13:47
Show Gist options
  • Select an option

  • Save teffcode/c5b4009cea53c6457b0443e22f631f14 to your computer and use it in GitHub Desktop.

Select an option

Save teffcode/c5b4009cea53c6457b0443e22f631f14 to your computer and use it in GitHub Desktop.

馃憢馃徏 Welcome 馃憢馃徏

Quiz banner

Instagram | Twitter | LinkedIn


馃憛 Choose your language



馃殌 English version


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



馃殌 Spanish version


驴 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



Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment