Комментарии:
Saved me, Thanks a lot
ОтветитьIs it working locally?
ОтветитьLife saver
ОтветитьHow do you import multiple functions that take parameters?
ОтветитьNice! To the point. Like it!
Ответитьbeautiful! :D
ОтветитьDude, you saved my life tonight. The code I inherited was using some complex module patterns and I needed something simple like your example to get back to a baseline, troubleshoot why I couldn't export my effing module. Works like a charm now. I should have searched for this a few hours ago!
Ответитьdude I was going through the docs of node.js and it just couldn't go into my head. 2 minutes into your video and my program is working.
ОтветитьThank you!
Ответитьnice explanation..
ОтветитьVery good tutorial , well explained :)
Ответитьneed some help... I can't seem to get require() to work. Any advice? I have tried CommonJS, Browserfy, requireJS - going crazy here please help!
ОтветитьI have a question it's regarding exports but not involve in your video, what is register?
(exports.register) also the only register in the whole code is "var registerEventHandlers = function (eventHandlers, skillContext) "
Brilliant! Just Brilliant!
ОтветитьIm trying to return values using export
But, the console shows undefined
This is my code
playicon.js
module.exports = function sendvalues(val1, val2){
return val1;
return val2;
console.log(val1);
};
database.js
var sqlite3 = require('sqlite3').verbose();
var playicon = require('./playicon');
console.log(playicon); //returning function
console.log(playicon.sendvalues()); returns undefined
I need to return val1, val2 in above function.
Please help!
thank bro. your tutorial was very helpfull
Ответить