console.log("Logged on!"); community.enableTwoFactor(function(err, response) { if(err) { if(err.eresult == 2) { console.log("Error: Failed to enable two-factor authentication. Do you have a phone number attached to your account?"); process.exit(); return; }
How i can fill details with a variable? For example: var log = "example1"; var pasw = "example2"; var details = { "accountName": log, "password": pasw,}; When i try to run it shows me that "accountName": log, ^ ReferenceError: log is not defined