Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

231
Views
¿El autoboxing solo ocurre cuando el . se usa el operador en JavaScript?

Cuando usas el . operador en una variable que es un tipo de datos primitivo, la variable se enmarcará automáticamente, por ejemplo:

 var str = "Hello World"; // str is of type string console.log(str.length); // a temporary object of type String will be created

Pero, ¿el autoboxing solo ocurre cuando el . se utiliza el operador?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

No, se usa cada vez que accede a una propiedad en una primitiva, que tiene un constructor correspondiente.

P.ej

 'abc'[2] // this will access 'c'

Como puede ver, no hay '.' se utilizó el accesorio.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!