Code:
var str = "-18x"
var exponent = "2";
var x = str + exponent.sup();
document.write(x);
“The expert at anything was once a beginner”
__________________
All the code given in this post has been tested and is intended to address the question asked.
Unless stated otherwise it is not just a demonstration.
|