• Cursos
  • Compilador de Código
  • Debatir
  • Precios
  • Teams
Menu
0

Please, explain step by step

Why does output equals to 4? https://code.sololearn.com/Wf720i5mVD0A/?ref=app

javascriptecmascript
2nd Jun 2019, 8:25 PM
Vladyslav Semeniuk 🐸
Vladyslav Semeniuk 🐸 - avatar
1 Respuesta
+ 7
If you enter a number as the key of an object, it becomes a string. Therefore, the second value of "0" replaces the first.
2nd Jun 2019, 9:34 PM
InvBoy [ :: FEDE :: ]
InvBoy [ :: FEDE :: ] - avatar

¿Tienes a menudo preguntas como esta?

Aprende gratis de forma más eficaz

  • Introducción a Python

    7,1M de estudiantes

  • Introducción a Java

    4,7M de estudiantes

  • Introducción a C

    1,5M de estudiantes

  • Introducción a HTML

    7,5M de estudiantes

Ver todos los cursos
En tendencia hoy
Functions in python
2 Votes
How to make a playground
1 Votes
How can you find whether a number is odd or even in a different way(other than (x%2==0))[ by New logics algebraic way ]?
1 Votes
I need advice
1 Votes
Html 5 document question
1 Votes
this query always result to be incorrect from Sorting Data lesson
1 Votes
Python
0 Votes
𝙵𝙸𝙽𝙳 𝚃𝙷𝙴 𝙸𝙽𝙿𝚄𝚃 𝙾𝙵 𝚃𝙷𝙴 𝙿𝚁𝙾𝙶𝚁𝙰𝙼
1 Votes
Can you tell what is wrong with the code
0 Votes
Can someone explain inline and block elements please
0 Votes