I have a simple task I\'m trying to accomplish learning JavaScript but haven\'t been able to find a clear answer. Here\'s the code;
First of all, your JavaScript should find the element you address. Hence you need to put your tag after the element is defined (this is one easy way).
Next, using .getElementById() you can find element, but to get inner HTML out of it, you need to target .innerHTML property:
Testing
Finally, for testing purposes you'd better use console. To make your script output values to the console, use console.log().