Using numbersapi.com with jQuery

HTML

We now have more users than <span id="number"></span>!

JavaScript

$(function() {
	var total=3;
    $.get('http://numbersapi.com/' + total + '/trivia', function (fact) {
        $('#number').text(data);
    });
});