2

Paracetamol.js💊| #85: Explica este código JavaScript

 2 years ago
source link: https://dev.to/duxtech/paracetamoljs-85-explica-este-codigo-javascript-509l
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.
neoserver,ios ssh client

Explica este código JavaScript

const test = {
  if:"Es un condicional",
  let: "Es una manera de declarar variables",
  for: "Es un bucle",
};
console.log(test.for); //??

Enter fullscreen mode

Exit fullscreen mode

A. SyntaxError: unexpected token: keyword 'for'
B. Es un bucle
C. ReferenceError
D. Ninguna de las anteriores

Respuesta en el primer comentario.



About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK