So I looked around stackoverflow and i see that this may have been asked before but I cannot wrap my head around the error.
I get this error :
SyntaxError: expected expression, got '<' // first line
but my first line there is no error :
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
document.write('<span>abc</span>');.