javascript - call function before declaration : I have this function inside test.js:

    function testing(){
    document.write("<p>Tes1</p>");
    } 
And then a basic html page.

Is possible to call the function before being declared and add to the page the:

> <p>Test1</p>

Because if I include the test.js at the bottom of the page, is not working. Is there a way to make it work (with .js file being included at the bottom of the html page)?

Thanks