Home javascript строка не найдена

строка не найдена




I get an error when I try to open my page.


var express = require ('express'),
   App = Express ()
   Server = Require ('HTTP'). CreateServer (App),
   IO = Require ('Socket.io'). Listen (Server);
Server.listen (3000);
App.Get ('/', Function (REQ, RES) {
   res.sendfile (___ dirname, '/index.html');

Answer 1, Authority 100%

Instead of this

res.sendfile (___ dirname, '/index.html');

Write this

res.sendfile (__ dirname + '/index.html');

Programmers, Start Your Engines!

Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.

Recent questions