Company logo
  • Jobs
  • Bootcamp
  • About Us
  • For professionals
    • Home
    • Jobs
    • Courses
    • Questions
    • Teachers
    • Bootcamp
  • For business
    • Home
    • Our process
    • Plans
    • Assessments
    • Payroll
    • Blog
    • Sales
    • Calculator

0

52
Views
What type of operation occurs with the syntax object["key String"] JavaScript

I would like to know more about the internal workings of JavaScript to better understand what is happening.

With the following object

let test = {"A": 10,"D" : 6, "PP" : 777};

console.log (test["PP"]): // 777

console.log (test.PP): // 777

How does JavaScript find my value with potential N element in the object?

My question is about the inner workings.

Imagine an object with 100,000 properties how will it find the key "PP" what job will it do? How does JS work to give us the value 777?

7 months ago ยท Juan Pablo Isaza
Answer question
Find remote jobs