I just learned Html and JS and wrote the following two files. I feel that Hello world should be displayed, but actually nothing is displayed. Where did I go wrong?
Test.html content
Example < meta charset="utf-8">
Test.js content
function Myfunc()
{
document.writeln("Hello world");
}
Reply to discussion (solution)
Example Test.js content
function Myfunc()
{
alert("Hello World!');
document.writeln("Hello world" ; script type="text/javascript" src="Test.js"> Just write