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

91
Views
CSS code prints it self and only works sometimes?

I am a complete novice at programming, but I have this code that works maybe once every 5 times and it prints my CSS code as text. I do not wish to use async or promises.

const server = http.createServer(function(recieve, respond){
let count = 0
respond.writeHead(200);
let manager = function (err, data){
respond.write(data);
count += 1
if (count === 2){
    respond.end()
    }}
fs.readFile('index.html',manager)
fs.readFile('styles.css',manager)
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!