• Catalog

    Catalog

    See All
    • Languages
    • Courses

    Languages

    See All
    • C++
    • C#
    • HTML
    • Java
    • JavaScript
    • Python
    • C
    • CSS

    Level

    See All
    • Beginner
    • Intermediate
    • Advanced

    Courses

    See All
    • Introduction to Python
    • Introduction to C
    • Introduction to C#
    • Introduction to SQL
    • Introduction to HTML
    • Introduction to CSS
    • Introduction to Java
    • Introduction to JavaScript
    • Introduction to C++
    • Tech for Everyone

    Courses

    See All
    • C# Intermediate
    • Python Intermediate
    • Java Intermediate
    • JavaScript Intermediate
    • C++ Intermediate
    • C Intermediate
    • SQL Intermediate
    • Game Development with JS

    Courses

    See All
    • React + Redux
    • Angular + NestJS
    • Python Data Structures
  • Online Compiler
    • HTML
    • CSS
    • Javascript
    • C++
    • C
    • PHP
    • Java
    • Python
    • Swift
    • C#
    • Ruby
    • Node.JS
    • Kotlin
    • jQuery
    • Go
    • R
    • TypeScript
  • Discuss
  • Blog
  • Get Pro
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 Answer
+ 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

Often have questions like this?

Learn more efficiently, for free:

  • Introduction to Python

    7.1M learners

  • Introduction to Java

    4.7M learners

  • Introduction to C

    1.5M learners

  • Introduction to HTML

    7.5M learners

See all courses
Hot today
Int i=0,n=10; while (i<n) i++; find the loop
1 Votes
Why len() is not working
2 Votes
I am an idiot at coding the course doesnt work plaese teach me
0 Votes
How many times would the following loop execute? Char a = 'a' While (a>'a' && a<='z') a++;
1 Votes
How to make a full wed
0 Votes
Can anyone help me in posting my app on Google Play Store.although i don't have a Google developer account.
0 Votes
Python course update kinda sucks
0 Votes
Multiplyin
0 Votes
How to make your codes more popular?
0 Votes
IF I WANT TO MAKE AN APP WITH KOTLIN THAN WHAT CAN I DO
0 Votes

Languages

  • C++
  • C#
  • HTML
  • Java
  • JavaScript
  • Python
  • C
  • CSS

Introduction Courses

  • Introduction to Python
  • Introduction to C
  • Introduction to C#
  • Introduction to SQL
  • Introduction to HTML
  • Introduction to CSS
  • Introduction to Java
  • Introduction to JavaScript
  • Introduction to C++
  • Tech for Everyone
  • R
  • Kotlin
  • Go
  • PHP
  • Ruby
  • Swift 4

Intermediate Courses

  • C# Intermediate
  • Python Intermediate
  • Java Intermediate
  • JavaScript Intermediate
  • C++ Intermediate
  • C Intermediate
  • SQL Intermediate
  • Game Development with JS

Advanced Courses

  • React + Redux
  • Angular + NestJS
  • Python Data Structures

Community

  • Discuss
  • Code Bits
  • Blog
Follow us on Linkedin
Check out our facebook
See what we tweet about
Join our instagram
Watch our Youtube
HomeTop LearnersProFAQContactBug Bounty ProgramCareersTerms of UsePrivacy PolicySololearn mobile
Made with
by  Sololearn | ©2023