How to retrieve value of a variable in class
问题 Hello I have a problem to retrieve a value from a method. I'm using sequelize in node.js. How can get placeTmp['id'] when I do this: server.js: var Sequelize = require('sequelize'); var sequelize = new Sequelize(config.database, config.username, config.password); var Place = sequelize.import(__dirname + '/model/Place'); console.log(Place.getActualId()); // An ID but I'll retrieve undefined :( Place.js: module.exports = function(sequelize, DataTypes) { var place = sequelize.define('Place', {