how can i add the body from the http get to a string (var GetText)?
var GetText ;
require('https').get('https://www.random.org/integers/?num=1&min=1&max=10&col=1&base=10&format=plain&rnd=new', (res) => {
res.setEncoding('utf8');
res.on('data', function (body) {
console.log(body);
});
});
console.log(GetText);