you might use a variable first like
var result = 2 + 7 * 8
and then convert the result to a string like this:
document.write(result + "")
(concatenating the empty string makes the numeric become a string)
Jerry
Jerry Ross