yprint source lang-js"><code>var watson = require('watson-developer-cloud');

var tone_analyzer = watson.tone_analyzer({
  username: '&lt;username>',
  password: '&lt;password>',
  version: 'v3',
  version_date: '2016-05-19'
});

tone_analyzer.tone({ text: 'Greetings from Watson Developer Cloud!' },
  function(err, tone) {
    if (err)
      console.log(err);
    else
      console.log(JSON.stringify(tone, null, 2));
});</code></pre><h3>Tradeoff Analytics</h3><p>Use the <a href="http://www.ibm.com/watson/de