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

405
Views
¿Por qué recibo ReferenceError: la respuesta no está definida?

Estoy usando node.js con express. Estoy tratando de configurar un servidor básico, pero no tengo idea de por qué recibo un error de respuesta.

 var http = require('http'); var myServer = http.createServer(function(req,res){ response.writeHead(200, {"Content-Type" : "text/plain"}); response.write('Hello World'); response.end(); }); myServer.listen(3000);
about 4 years ago · Santiago Trujillo
1 answers
Answer question

0

function(req,res)

supuestamente es

 function(req, response) {

No tiene una response con nombre de variable en el ámbito de la devolución de llamada. Esa es la razón del reference error

about 4 years ago · Santiago Trujillo 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!