Skip to content

typo in node beginner's guide (s/data/req) #20

@jplehmann

Description

@jplehmann

In first example under EventEmitters:

var data = '';
req
  .on('data', function(chunk) {
    data += chunk;
  })
  .on('end', function() {
    console.log('POST data: %s', data);
  })

Shouldn't that first line be a declaration of 'req' not 'data'?

thanks for the helpful docs!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions