## Confused with innerHTML

I can't seem to get my innerHTML to display my content.

This works fine, if I was to put it all in one line.
Code:
document.getElementById('addedText').innerHTML =  '<table><tr><td>'+"My text goes here"+'</tr></td></table>';
If I was to break it up, which I wanted then nothing seem to show up.
Code:
document.getElementById('addedText').innerHTML = "My text goes here";

Here's my code
HTML Code:
<html>
<script type="text/javascript">
function display() {