I want to append "%" sign after getting "quizpoints" value

I want to append % sign after getting "quizpoints" value.

var player = GetPlayer(),
  xhttp = new XMLHttpRequest,
  targlink = "https://cluelabs.com/stencil/display/widget-table-save-row?chart=MTA2N3wyMDY5fDUzZWU0NzFiOTdkOWRiYzg2NWFhNmNmNjhjYmFiZTcw";

targlink = targlink + "&newnum=" + encodeURIComponent(parseFloat(player.GetVar("quizpoints"))) + "&newtext=" + encodeURIComponent(player.GetVar("learnername")), 
xhttp.onreadystatechange = function() {
  4 == this.readyState && 200 == this.status && player.SetVar("stencilrendered", parseInt(player.GetVar("stencilrendered")) + 1)
}, 
xhttp.open("GET", targlink, !0), 
xhttp.send();

Leave a Comment