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

201
Views
Cada vez que intento acceder a (car1.topSpeed) en la barra de consola del navegador, aparece un error (car1 no está definido). ¿Qué debo hacer?

Este es mi código y cada vez que intento acceder a (car1.topSpeed) en la consola del navegador, aparece un error (car1 no está definido). ¿Qué debo hacer?

 //Creating a constructer for cars function GeneralCar(givenName,givenSpeed){ this.name = givenName; this.topSpeed = givenSpeed; this.run = function(){ console.log(`${this.name} is running`); } this.analyze = function(){ console.log('This car is slower by ${200 - this.topSpeed} than Mercedes') } } let car1 = new GeneralCar('Tesla',120); //Here creating a new car with the help of the constructer(GeneralCar). let car2 = new GeneralCar('Maruti',80); console.log(car1,car2);

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!