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

195
Views
en JavaScript, el método toString no ejecuta directamente un objeto vacío, sino que se ejecuta en una variable que se asigna a un objeto vacío

Intenté esto hoy en la consola de mi navegador y vi algo extraño. Por favor ayuda. ¿Alguien puede ayudarme a entender por qué sucede?

Prueba 1:

 {}.toString(); // It shows an error - Uncaught SyntaxError: Unexpected token '.'

Prueba 2:

 const a = {}; a.toString(); // It returns '[object Object]'
about 4 years ago · Juan Pablo Isaza
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!