Jump to content

HARSH

Members
  • Posts

    1
  • Joined

  • Last visited

Posts posted by HARSH

  1. Following is the code visible on the web page, explaining the use of upper-case module of nodejs in the npm section

    var http = require('http');
    var uc = require('upper-case');
    http.createServer(function (req, res) {
      res.writeHead(200, {'Content-Type': 'text/html'});
      res.write(uc.upperCase("Hello World!"));
      res.end();
    }).listen(8080);

    But on the android app the upperCase() method is missing, the following displays on app

    var http = require('http');
    var uc = require('upper-case');
    http.createServer(function (req, res) {
      res.writeHead(200, {'Content-Type': 'text/html'});
      res.write(uc("Hello World!"));
      res.end();
    }).listen(8080);

    and who is saying this, in the run examples comment... you or nodejs??? => /*Use our upper-case module to upper case a string:*/

×
×
  • Create New...